Written together with Tamas Ungvary.
See file instruments/sGliss.scd for a complete example.
create a new gliss instrument. the localhost server will be booted if it is not already running.
| maxNumVoices |
the maximum number of voices one can add to this instrument. |
| target |
if |
| outbus |
where to send the stereo output. |
| addAction |
a Symbol. |
| args |
extra arguments as an Array with key/value pairs. |
fade out the sound and free all internal nodes and busses.
| releaseTime |
fade out time in seconds. |
set parameters for all internal nodes and save them in the arguments dictionary.
| ... args |
an Array with key/value pairs. can also be a single key/value pair. |
convenience method for .set(\pannings, ...)
| arr |
an array of floats (-1.0 to 1.0). |
read the panning positions control rate bus synchronously.
an array of floats (-1.0 to 1.0).
convenience method for .set(\amplitudes, ...)
| arr |
an array of floats (0.0 to 1.0). |
read the amplitude control rate bus synchronously.
an array of floats (0.0 to 1.0).
convenience method for .set(\frequencies, ...)
| arr |
an array of floats in Hz. |
read the frequencies control rate bus synchronously.
an array of floats in Hz.
the current number of voices.
create new voices up to a maximum of maxNumVoices (set in *new). internally controllers for frequencies, amplitudes and panning are automatically created.
| num |
the number of voices to be added. |
| type |
a Symbol describing the type of sound to add. For example |
| args |
extra arguments as an Array with key/value pairs. |
remove voices.
| num |
the number of voices to be removed. |
| action |
a Function that will be evaluated when the voice has faded out. |