Web assembly, musical synthesis and the beauty of mathematics
The electronics hobby has changed a lot since the advent of the microprocessor. Before that – and with the lack of large-scale integrated circuits – projects in magazines tended to be either super simple or super complex. However, one popular type of project involved music synthesis. Pretty simple circuits could combine to form a complex synthesizer, so it was sort of the best of both worlds. Nowadays, you are more likely to tackle a music synthesizer in software like [Tim] did when he created Abelton in Web Assembly and C ++. Along the way, he learned a lot about the relationship between math and music.
[Tim] covers what he learned about Nyquist’s theorem and how to circulate summary data in real time with buffers. However, there are a few issues when trying to do all of this in a cross-browser context. the
AudioWorklet the class seems to have broad support, however, and [Tim] managed to get this to work.
If you want to learn more about WebAssembly, check out our previous article. We’ve seen emscripten do some great things on the web before.