Comments (4)
A simple solution would just be to pull all samples from the Project Sound Track, and keep them globally.
Downsides:
- Large memory use for lengthy tracks
- Only works for Project Sound Track, not streams
from t3.
Interesting. I was using a similar approach by serializing the result of fft as json.
I'm honestly not sure if processing the waveform directly on the flight would be fast enough in c#. But I'm not so much into audio. Maybe @HolgerFoerterer has an idea how to do this.
from t3.
To get sample-precise output for video rendering, I spent a lot of time trying to convince Bass to switch from a real-time-based-approach to another mode where I could get access to buffered data in a consistent way. To be honest I failed too. Whatever I did... whenever I repositioned the playback in any way... things screwed up. So at the moment, I position the playback at the very beginning of the recording and avoid repositioning during the render.
So yes, you should theoretically be able to obtain buffered data by using a comparable approach. At least for FFT data there is a flag to fill the FFT without consuming new data.
But in a real-time scenario, don't expect buffered data to be exactly the same every time. Bass will apparently playback faster/slower and even skip as it sees fit to keep sync. And I don't know how to align that data then. When we get new data, it's obviously current, but that seems to be all we know.
And to answer the question by @pixtur: C# should be able to handle manual processing of stereo samples at 44.1-48 kHz easily.
from t3.
whenever I repositioned the playback in any way... things screwed up
I suspect it might not be possible with the current API due to the nature of sound running in another thread.
You'd need a function that give you the data AND the position in the same API call.... otherwise there is no guarantee they would be in sync.
from t3.
Related Issues (20)
- Feature Request / Bug - Allow Midi to be used in Executable Export again
- Feature Request - Create Camera Control Operator for Exectuable Exports HOT 1
- Feature Request - Camera Control inhereted in Output window for Combined Ops
- Feature Request - Dev Build Header Populates Commit SHA HOT 6
- Bug - Sketch Operator no longer working HOT 2
- [OrbitCamera] doesn't render after setting radius 0 HOT 6
- Image of SoundTrack doesn't match with the music HOT 1
- MIDIInput not responding to trigger when Control is assigned by an input value in Tooll v3.9 HOT 1
- MIDIOutput operator is not sending NoteOff MIDI command when sendMode is set to "Note_FixedDuration" HOT 1
- Setup and Installation in documentation is outdated (and link from http://tooll.io/ too) HOT 2
- Magic Resolution consistency/override HOT 3
- "Redo" shortcut label under Edit is wrong HOT 2
- inconsistent PickStringPart HOT 2
- Feature Request: Keybind/option to navigate in/out of nodes HOT 4
- String to value parser HOT 2
- [PointsOnImage] generates stray 45 degree line of particles HOT 1
- MAIN: Layout switching no working with project names in graph tab
- MAIN: Cleanup layout of dialog windows
- MAIN: Update layout during window resize
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t3.