I recommend starting with p5.js. If you need synchronized tracks, add Tone.js to the mix. The Ableton website also uses Tone.js.
https://tonejs.github.io/
I hope it to be the next move in the industry, transforming text webpage into 2D RPG-like interface.
Perhaps that is why webassembly as been create for, to leap forward helping the emerge of new ( 2.5D) interface.
If not, then A13 iphone 11 will only help the mega bytes of poor dev reactjs interface sur-comsumming giga watt of power for no reason, and brutalism will then succeed ;) ;)