Skip to content

@liminal-hq/undertone / renderToBuffer

Function: renderToBuffer() ​

renderToBuffer(pattern, options?): Promise<RenderedAudioBufferLike>

Defined in: render.ts:119

Renders a pattern to an audio buffer with no real-time clock: every event is booked up front on an offline context, so the same pattern, tempo and seed give the same samples on the same engine. Pass the result to encodeWav to write a file.

Room size is fixed per orbit for the whole render (the last one booked wins), because a reverb's impulse response cannot be scheduled.

Parameters ​

pattern ​

RenderablePattern

options? ​

RenderOptions = {}

Returns ​

Promise<RenderedAudioBufferLike>