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

RedLoop
ExtensionExtension

loop a soundfile from memory

Description

Nothing fancy. This class just plays a soundfile from RAM using PlayBuf.

Class Methods

.new

Creates a new instance. If Server.default is not booted, then this will boot it.

Instance Methods

.amp

Set the amplitude.

.channels

Returns the number of channels in the soundfile.

.length

Returns the duration of the soundfile in seconds.

.buffer

Returns the Buffer instance.

.free

Stops playing and frees the buffer.

Examples