RedSFPlayerDisk:
Filter:
Classes (extension) | Red > redSF

RedSFPlayerDisk
ExtensionExtension

plays soundfiles (from disk)
Location: NOT INSTALLED!

Description

Based on VDiskIn. Use RedSFPlayer for playing back soundfiles from memory 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.

Inherited class methods

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.

NOTE: For this disk player version rates can not be negative.
fadeTime

In seconds.

NOTE: For this disk player version there is no crossfade of loops.

.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.

Inherited instance methods

Examples