Chapter 7 of 10
Effects
Companion lab · Read full chapter in the guide →
Read track or mic input with wax.in, process in the graph, and render FX to the host outputs.
In this lab you will
- Query
wax.host.inputChannels()and pickchannelforwax.in - Drive filters with
wax.const({ key, value }) - Call
connectMic()on a gesture for browser preview
Minimal pattern
const mic = wax.in({ channel: 0 });
const out = wax.svf(
{ mode: "lowpass" },
wax.const({ key: "cutoff", value: cutoffHz }),
wax.const({ key: "q", value: q }),
mic,
);
wax.render(out, out);
Try it
Example code
Loading…