RedSamp:
Filter:
redSampler/Classes (extension) | Red > redSampler

RedSamp
ExtensionExtension

playing buffers

Description

This class uses PlayBuf to play back parts of a buffer. With overlap one can set the number of voices. It uses the same interface as RedDiskInSampler and RedSampler.

Instance Methods

.prepareForPlay

Attach a soundfile to a key (number or symbol) and create buffers - one for each overlapping voice. This method is also has the alias preload for backward compatibility.

Arguments:

key

A number or a symbol.

buffer

A Buffer instance.

startFrame

In samples.

numFrames

How much of the file to load in samples. Leave as nil to load the complete file.

Examples