SGliss:
Filter:
Classes (extension) | SInstruments

SGliss
ExtensionExtension

a glissing sInstrument
Location: NOT INSTALLED!

Description

Written together with Tamas Ungvary.

See file instruments/sGliss.scd for a complete example.

Class Methods

.new

create a new gliss instrument. the localhost server will be booted if it is not already running.

Arguments:

maxNumVoices

the maximum number of voices one can add to this instrument.

target

if nil then the localhost server's default group will be used.

outbus

where to send the stereo output.

addAction

a Symbol.

args

extra arguments as an Array with key/value pairs.

Inherited class methods

Instance Methods

.voices

the currently active voices.

Returns:

a List with AbstractSGlissVoice instances.

.release

fade out the sound and free all internal nodes and busses.

Arguments:

releaseTime

fade out time in seconds.

.set

set parameters for all internal nodes and save them in the arguments dictionary.

Arguments:

... args

an Array with key/value pairs. can also be a single key/value pair.

.setPannings

convenience method for .set(\pannings, ...)

Arguments:

arr

an array of floats (-1.0 to 1.0).

.getPannings

read the panning positions control rate bus synchronously.

Returns:

an array of floats (-1.0 to 1.0).

.setAmplitudes

convenience method for .set(\amplitudes, ...)

Arguments:

arr

an array of floats (0.0 to 1.0).

.getAmplitudes

read the amplitude control rate bus synchronously.

Returns:

an array of floats (0.0 to 1.0).

.setFrequencies

convenience method for .set(\frequencies, ...)

Arguments:

arr

an array of floats in Hz.

.getFrequencies

read the frequencies control rate bus synchronously.

Returns:

an array of floats in Hz.

.numVoices

the current number of voices.

.addVoices

create new voices up to a maximum of maxNumVoices (set in *new). internally controllers for frequencies, amplitudes and panning are automatically created.

Arguments:

num

the number of voices to be added.

type

a Symbol describing the type of sound to add. For example \Pink.

args

extra arguments as an Array with key/value pairs.

.removeVoices

remove voices.

Arguments:

num

the number of voices to be removed.

action

a Function that will be evaluated when the voice has faded out.

Inherited instance methods

Examples