3 ms·
Hey ArtWomb, glad that you're interested. Actually, I've never done anything with real time sound synthesis myself. To your question: Recording audio or store
by timdaub 6y ago
Hey ArtWomb,
glad that you're interested. Actually, I've never done anything with real time sound synthesis myself.
To your question: Recording audio or store a blob file.
WASM-Synth continuously calls the audio generation code within the AudioWorklet [1].
To make it simple, you could just send this `sample` each time to the main process and store it there somehow. There's many examples how to send data between the AudioWorklet and the main thread [2].
WASM-Synth is open source [3]. I'd be happy to merge a PR that integrated a "recording" functionality! Hit me up on GH or email. You find it on my website [4].
- 1: https://github.com/TimDaub/wasm-synth/blob/master/src/js/worklets/synth.js#L42 https://github.com/TimDaub/wasm-synth/blob/master/src/js/wor...
- 2: https://googlechromelabs.github.io/web-audio-samples/audio-worklet/ https://googlechromelabs.github.io/web-audio-samples/audio-w...
- 3: https://github.com/TimDaub/wasm-synth https://github.com/TimDaub/wasm-synth
- 4: https://timdaub.github.io/ https://timdaub.github.io/