AudioWorklet

Register a custom processor, expose a parameter, and render its output.

npx web-audio-api worklet
gain=<0..1>
peak of the amplitude parameter automation
ready

This is an AudioWorklet example: it registers a custom AudioWorkletProcessor, exposes an AudioParam, and renders the output of that processor. Run it in the browser, where the adapter registers a Blob URL for the processor, or from the Node CLI, which also supports inline callback registration.