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.
[ Parent
| on HN ]