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

RedSampler
ExtensionExtension

playing soundfiles from memory

Description

Nothing fancy. This class just loads soundfiles into RAM and then uses PlayBuf to play them back. It uses the same interface as RedDiskInSampler (except for numFrames which is is not implemented here).

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.

path

A string to a soundfile.

startFrame

In samples.

numFrames

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

Examples