Part of the Composer's Tool Kit (CTK) system. See Ctk for more details.
CtkControl is a wrapper for a control Bus suitable for use with CTK objects.
Create new instance - for use with CtkScore or to enable it for real-time use at a later time (see -play)
numChans |
The number of channels to allocate. |
initVal |
Initial value to set the bus to. |
starttime |
Start time, useful in CtkScore |
bus |
The bus index to use (optional). Normally you don't need to specify it, as it will be allocated for you. |
server |
An instance of Server to allocate this bus on. Defaults to Server.default. |
a CtkControl
Create a new CtkControl and immediately make it available for real-time use.
numChans |
The number of channels to allocate. |
initVal |
Initial value to set the bus to. |
bus |
The bus index to use (optional). Normally you don't need to specify it, as it will be allocated for you. |
server |
An instance of Server to allocate this bus on. Defaults to Server.default. |
a CtkControl
Create a control bus that plays back an Envelope.
env |
An instance of an Env to be passed to a synth as the argument for an EnvGen. |
starttime |
If used in a CtkScore, specifies a time to write the initVal to the bus. |
addAction |
A symbol (\head, \tail, \before, \after or \replace) or an addAction id (see Server Command Reference: /s_new for a more in-depth description) |
target |
A node ID (synth or group) or an instance of CtkGroup or CtkNote. |
bus |
The bus index to use (optional). Normally you don't need to specify it, as it will be allocated for you. |
server |
An instance of Server to allocate this bus on. Defaults to Server.default. |
levelScale |
The levelScale argument to be supplied to EnvGen. |
levelBias |
The levelBias argument to be supplied to EnvGen. |
timeScale |
The timeScale argument to be supplied to EnvGen. |
doneAction |
The doneAction argument to be supplied to EnvGen. See Done: Actions for more information. |
a CtkControl
See examples
Create a control bus that plays back a low-frequency oscillator
ugen |
An oscillating Ugen. Choose from: LFNoise0, LFNoise1, LFNoise2,SinOsc, Impulse, LFSaw, LFPar, LFTri, LFCub. |
freq |
The frequency of oscillation. |
low |
The lower bounds of oscillation. |
high |
The upper bounds of oscillation. |
phase |
The starting phase of the oscillator. |
starttime |
If used in a CtkScore, specifies a time to write the initVal to the bus. |
duration |
Specifies duration (for CtkScore use). |
addAction |
A symbol (\head, \tail, \before, \after or \replace) or an addAction id (see Server Command Reference: /s_new for a more in-depth description) |
target |
A node ID (synth or group) or an instance of CtkGroup or CtkNote. |
bus |
The bus index to use (optional). Normally you don't need to specify it, as it will be allocated for you. |
server |
a CtkControl
See examples
Enable an instance of CtkControl for real-time use
node |
target node |
argname |
Set the value of CtkControl
val |
The value to which the control bus will be set. |
time |
The time at which to set the control bus. If used in real-time, the time parameter schedules when the change of value should occur. In NRT, schedules the change at time from the value of starttime (or starttime + time) |
Returns the bus id to the allocation pool.
Get the value of the bus (asynchronous)
action |
The action to be executed when the value is received. The function is passed two parameters: bus index and the actual value |
Get the value of the multichannel bus (asynchronous)
numChannels |
Number of channels to return; defaults to |
action |
The action to be executed when the value is received. The function is passed two parameters: bus index and an array of actual bus values |
Get the value of the bus. This command is synchronous. See Bus help for more information on synchronous access to control buses.
indexOffset |
Channel offset into a multichannel CtkControl |
A single value of the control bus.
Get values of a multichannel bus. This command is synchronous. See Bus help for more information on synchronous access to control buses.
numChannels |
Number of channels to return; defaults to |
indexOffset |
Channel offset into a multichannel CtkControl |
An array of values
the upper bounds value when using *lfo
the lower bounds value when using *lfo
bus number (index) of this CtkControl (similar to Bus: -index)
Examples that set the value of the CtkControl in real-time, and take advantage of SynthDef's lag controls.
Examples that populate an instance of CtkScore. The CtkScore can then be rendered in NRT, played or saved as a file. See CtkScore for more examples.