RedSFPlayer:
Filter:
redSys/Classes (extension) | Red > redSF

RedSFPlayer
ExtensionExtension

plays soundfiles (from memory)

Description

Based on PlayBuf. Use RedSFPlayerDisk for playing back soundfiles from disk instead.

Class Methods

.new

Create a new player on a Server.

Arguments:

server

If nil it will use Server.default.

.read

Create a new player on a Server.

Arguments:

path

A String pointing to a soundfile.

server

If nil it will use Server.default.

Instance Methods

.read

The server should be booted before reading.

Arguments:

path

A String pointing to a soundfile.

.loop

.play

Starts playing the soundfile.

Arguments:

out

Output bus.

rate

Playback rate.

fadeTime

In seconds.

.stop

Arguments:

fadeTime

In seconds.

.amp

Get or set the amplitude.

.buffer

Get the current Buffer.

.channels

Number of channels of the soundfile. Updated after reading.

.duration

Length of the soundfile in seconds. Updated after reading.

.free

Stop playing and free internal buffer.

.isPlaying

A Boolean

.server

Get or set the Server in use.

.synth

Get or set the internal Synth.

Examples