Feature
DSP functions
Mark a Koda function with @dsp and the compiler checks it as audio processing code and builds it for each target.
Runs on:
- Desktop (macOS, Linux, Windows)
- Web (WASM + WebAudio) (partial)
DSP functions take audio in and write audio out. The annotation says whether a function works a sample at a time, a buffer at a time or across several channels, and the compiler checks the signature against that.
On desktop the function is compiled to machine code, the same as the chips that ship with the app.