Would it be easier to just provide simple audio files?
https://glicol.org/demo#ambienthouse
It's a browser-based tool that lets you experiment with algorithmic composition and sound synthesis.
JavaScript: https://dittytoy.net/
Oxygene Pt 4 in JS: https://dittytoy.net/ditty/59b8a8d54d
But when we tried to self-host or do an offline version, it was impossible to find the library. Perhaps it isn't open-source.
Thanks to the links in this thread, now I have some other projects to try instead.