News for hackers. Stuff that matters.
Re:WASM SYNTH, or, how music taught me the beauty of math by javajosh on Tuesday May 25, 2021 @05:05PM (#27282649)
This probably isn't much help, but if you've got an arbitrary waveform you can do a Fourier transform on it to decompose it into a list of additive sine waves (each wave parameterized by amplitude and frequency, ignoring phase), and then play all those sine waves together to make your sound. I have no idea about the implementation details here (I can imagine that this might get computationally intensive!) but in theory this should work.
Re:WASM SYNTH, or, how music taught me the beauty of math by Weebs on Wednesday May 26, 2021 @02:51PM (#27294548)
If there's a will there's a way :) even if unpractical it's definitely a fun thought!