Hi,
I want to ask a wider question regarding including audio/sound in a BabylonJS project.
We want to include some generative sounds/music into our work.
It will be rather simple in regard of the composition.
Which methods would be the prefered/stable/compatible ones to bring audio to the Web/Babylon Project?
There are web implementations from Pure Data, Max … basically to JavaScript(?) for including in a Webproject(?).
Would that be a good way to go? Or better to program it straight with WebAudio?
Are there some people/projects with experience for that kind of topic, who might share some ideas?
Just had a thought… As Babylon has already some of those beautiful node editors.
What a bout an audio editor e.g. like https://noisecraft.app/
Unfortunately can not wait for that ;).
oO
What I found so far… to also give something not only take (oO).
The tools you’re referring to can all have their WebAudio AudioContext set manually, which you can get using Babylon’s AudioEngine.audioContext property.
This will work fine for standard playback using tools like WebPd, tone.js, etc.
If you want to move the generative sounds spatially with Babylon meshes, that will require a bit of extra work using the WebAudio API directly.
Thanks for the link to NoiseCraft. I hadn’t seen this project, yet. It looks like it can be integrated into Babylon fairly easily and might even be worth making a community extension for!
We’ve had a few requests for a node-based audio graph editor, so it’s on my radar to implement after the new Babylon audio engine is ready. Stay tuned
We r looking to work with Tone.js for now as it seems that it has the tools, musicians like to work with. Instruments etc.
Also it seems to be pretty slick.
Will share my experience…
Thanks
Werner