RecordBuf:
Filter:
Classes | UGens > Buffer

RecordBuf : UGen : AbstractFunction : Object

Record or overdub into a Buffer.
Source: BufIO.sc

Description

Records input into a Buffer.

If recLevel is 1.0 and preLevel is 0.0 then the new input overwrites the old data. If they are both 1.0 then the new data is added to the existing data. (Any other settings are also valid.)

NOTE: The number of channels must be fixed for the SynthDef, it cannot vary depending on which buffer you use.

Class Methods

RecordBuf.ar(inputArray, bufnum: 0, offset: 0.0, recLevel: 1.0, preLevel: 0.0, run: 1.0, loop: 1.0, trigger: 1.0, doneAction: 0)

RecordBuf.kr(inputArray, bufnum: 0, offset: 0.0, recLevel: 1.0, preLevel: 0.0, run: 1.0, loop: 1.0, trigger: 1.0, doneAction: 0)

Arguments:

inputArray

An Array of input channels.

bufnum

The index of the buffer to use.

offset

An offset into the buffer in samples.

recLevel

Value to multiply by input before mixing with existing data.

preLevel

Value to multiply to existing data in buffer before mixing with input.

run

If zero, then recording stops, otherwise recording proceeds.

loop

If zero then don't loop, otherwise do. This is modulatable.

trigger

a trigger causes a jump to the start of the Buffer. A trigger occurs when a signal changes from negative value to positive value.

doneAction

an integer representing an action to be executed when the buffer is finished recording. This can be used to free the enclosing synth, etc. See Done for more detail. doneAction is only evaluated if loop is 0.

Inherited class methods

Instance Methods

Inherited instance methods

Examples