Skip to main content

render

render(
@numchannels 2
@panmode 0
@sr 48000
@normalize 0
@play 0
@spread 1
@fade 5
@reset 0
@process null
) -> llll

Triggers audio rendering of all transcribed buffers via transcribe, and returns the rendered buffer. Note that it's possible to apply post-rendering processing by passing audio processing operations (e.g., reverse, freeverb, clip, etc.) to the @process arguments, but these audio modifications won't be accurately reflected in the score transcription.


Arguments

  • @numchannels [int]: Number of output channels. (default: 2).
  • @panmode [int]: Panning mode. (default: 0).
    • 0: Linear
    • 1: Circular
  • @sr [int]: Sampling rate. (default: 48000).
  • @normalize [int]: Audio normalization. (default: 0).
    • 0: Never
    • 1: Always
    • 2: Overload protection only
  • @play [int]: Autoplay rendered buffer. (default: 0).
    • 0: Off
    • 1: On
  • @spread [int/float]: Multichannel panning spread, between 0 and 1. (default: 1).
  • @fade [int/float]: Fade in/out applied to every buffer, in milliseconds (default: 5).
  • @reset [int]: Remove all previously transcribed buffers after rendering. (default: 0).
    • 0: Off
    • 1: On
  • @process [list/llll/null]: Optional post-rendering audio processing operations. (default: null).

Output

Rendered buffer [llll]


Usage

for $x in (0...12) * 100 do (
$buf = ezsampler(@pitch 6000);
$buf.transcribe(
@onset $x
@pan $x / 1200.
)
);
$buffer = render(@play 1); ## returns the mix of all transcribed buffers
$buffer.view('rendered buffer')