Based on the Ndef used for 'Strange Foreign Bodies'.
See file instruments/sDrone.scd for a complete example.
create a new drone instrument. the server must be running before starting.
| numVoices |
the number of voices for this instrument. |
| target |
if |
| outbus |
where to send the stereo output. |
| addAction |
a Symbol. |
| args |
extra arguments as an Array with key/value pairs. |
a Symbol describing the type of sound produced. For example \Pink.
fade out the sound and free all internal nodes and busses.
| releaseTime |
fade out time in seconds. |
| onFreeFunc |
a Function to be evaluated after the reverberating sound disappeared. |
cross fade to a new set of voices. will also set parameters for all internal nodes and save them in the arguments dictionary. set the \atk and \rel parameters to define cross fade time (both are 4 by default).
| ... args |
an Array with key/value pairs. can also be a single key/value pair. |
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(\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. |
convenience method for .xset(\frequencies, ...)will crossfade.
| arr |
an array of floats in Hz. |
read the frequencies control rate bus synchronously.
an array of floats in Hz.