Koda
Koda is the language a patch is written in; the same text runs on desktop, in a plugin, in the browser and on the headless node.
Not every patch compiles for the browser yet, and microcontrollers are out of reach; the language is still changing, so a patch written today may need edits later.
audio output
A patch plays through your sound card on desktop, through the host inside a VST3 plugin, and through ALSA on the headless node.
Tested on macOS, Linux desktop, the VST3 plugin and the headless node; Windows, iOS and Android builds have not been checked yet, and the browser uses its own path.
web audio library
Put a Koda patch inside your own web page: the library runs it in the tab, and your page's own controls play it.
Some patches do not compile for the browser yet, and the hosting page needs cross-origin isolation headers to play. The library draws no KodaX, so a notebook's prose and faceplates need the full app.
- Precompiled
- Zero-latency standard library, already native before you opened the app.
- JIT
- Native speed, millisecond compiles, hot reload on save.
- WASM
- Near-native in the browser. Same engine, no install.
- Bytecode VM
- The fallback for iOS and anywhere a JIT is not allowed.
metro; `clock bpm; 120.0 // voice chain: k=8 (512 samples) — engine handles it plaits; `plaits_voice frequency; hz engine; 'modal // vocal chain: k=1 (64 samples) — stays fast mic @in; `hardware_source channels; 1 output @out; `mix ; 0.6, plaits ; 1.0, mic