DSP building blocks and audio modules written in Odin.
Start here: Documentation Index
The full module reference is organized in the docs/ folder.
Build the package:
odin build .
Import the library package:
import ow "odinworks"
Then call the module APIs documented in docs/README.md.
package example
import ow "odinworks"
main :: proc() {
coeffs: ow.ow_ap1_coeffs
state: ow.ow_ap1_state
ow.ow_ap1_init(&coeffs)
ow.ow_ap1_set_sample_rate(&coeffs, 48_000.0)
ow.ow_ap1_set_cutoff(&coeffs, 1_000.0)
_ = ow.ow_ap1_reset_state(&coeffs, &state, 0.0)
x: f32 = 0.5
y := ow.ow_ap1_process1(&coeffs, &state, x)
_ = y
}