Control running synth

control

[node (synth_node)]

Control a running synth node by passing new parameters to it. A synth node represents a running synth and can be obtained by assigning the return value of a call to play or sample or by specifying a parameter to the do/end block of an FX. You may modify any of the parameters you can set when triggering the synth, sample or FX. See documentation for parameter details.

Introduced in v2.0.0

Example 0 


my_node = play 50, release: 5, cutoff: 60
sleep 1
control my_node, cutoff: 70
sleep 1
control my_node, cutoff: 90



 
 # play note 50 with release of 5 and cutoff of 60. Assign return value to variable my_node
 # Sleep for a second
 # Now modify cutoff from 60 to 70, sound is still playing
 # Sleep for another second
 # Now modify cutoff from 79 to 90, sound is still playing