Is this library similar to Tone.js? #45
-
Hi 👋, newbie here. I've previously used Tone.js and it's |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @lumosminima thank you for the question and I'm terribly sorry for the delay. This library is indeed similar to Tone, and I think you've correctly pointed out some of the differences.
It is lower level in that sense, yes! Tone is written using many of the web audio API nodes, whereas Elementary uses only a single WebAudioWorklet (when running in the web browser), and that worklet is running the C++ engine compiled to WASM. Because Elementary targets that C++ engine, we can also run the same code on other platforms (i.e. compile it in a native desktop app, audio plugin, raspberry pi, etc).
This piece is very much something I want Elementary to have soon (and is on the roadmap!), but it doesn't exactly exist yet. You can absolutely write a sampler and a synthesizer with Elementary right now, but the javascript library is currentlymissing some of these higher level utilities that make working with synths/samplers/notes/sequences as easy as Tone.js. So my short answer there is stay tuned, but also feel free to dig into the lower level stuff if you're interested!
This is a great idea, I've just added a note in my todo list to write this up 👍 |
Beta Was this translation helpful? Give feedback.
Hey @lumosminima thank you for the question and I'm terribly sorry for the delay. This library is indeed similar to Tone, and I think you've correctly pointed out some of the differences.
It is lower level in that sense, yes! Tone is written using many of the web audio API nodes, whereas Elementary uses only a single WebAudioWorklet (when running in the web browser), and that worklet is running the C++ engine compiled to WASM. Because Elementary targets tha…