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.inspect('rendered buffer')