BufRd:
Filter:
Classes | UGens > Buffer

BufRd : MultiOutUGen : UGen : AbstractFunction : Object

Buffer reading oscillator.
Source: BufIO.sc

Description

Read the content of a buffer at an index.

In comparison to PlayBuf : PlayBuf plays through the buffer by itself, BufRd only moves its read point by the phase input and therefore has no pitch input. BufRd has variable interpolation.

Class Methods

BufRd.ar(numChannels, bufnum: 0, phase: 0.0, loop: 1.0, interpolation: 2)

BufRd.kr(numChannels, bufnum: 0, phase: 0.0, loop: 1.0, interpolation: 2)

Arguments:

numChannels

Number of channels that the buffer will be. This must be a fixed integer. The architecture of the SynthDef cannot change after it is compiled.

NOTE: If you supply a bufnum of a buffer that has a different numChannels then you have specified to the BufRd, it will post a warning and output the channels it can.
bufnum

The index of the buffer to use.

phase

Audio rate modulateable index into the buffer.

WARNING: The phase argument only offers precision for addressing 2**24 samples (about 6.3 minutes at 44100Hz).
loop

1 means true, 0 means false. This is modulateable.

interpolation

1 means no interpolation, 2 is linear, 4 is cubic interpolation.

Inherited class methods

Instance Methods

Inherited instance methods

Examples