Chapter 4 of 9

Host

Ask the DAW how many channels and what sample rate the plugin sees — then size I/O and UI labels to match.

Host queries

const sr = wax.host.sampleRate();
const block = wax.host.blockSize();
const ins = wax.host.inputChannels();   // 1 or 2 typical
const outs = wax.host.outputChannels();

Routing

When to read host info

After await WaxNative.create(), before the first render. Re-read only if you handle dynamic I/O changes (uncommon on Custom Pages).

Try it

Transport timing and playhead APIs live on WaxWeb for Web Audio apps; native graphs use Transport callbacks and engine nodes instead.

Example code

Snippets from this lesson — combine in your Custom Page.

Loading…