Offline render

Render a complete graph to an AudioBuffer with no speakers or audio device.

ready

node examples/render-to-buffer.js
Graph
Offline graph → AudioDestination → AudioBuffer
Input
Graph, length, sample rate
Output
AudioBuffer

This is a minimal OfflineAudioContext example: a complete graph renders straight to an AudioBuffer with no speakers, no audio device, and no browser required. Run it from the Node CLI for a batch render, or open it in the browser to see the identical offline graph.