Kill synth

kill  node (synth_node)

Kill a running synth sound or sample. In order to kill a sound, you need to have stored a reference to it in a variable.

Introduced in v2.0

Examples

# Example 1


foo = play 50, release: 4
sleep 1

kill foo



# store a reference to a running synth in a variable called foo:
 
 
# foo is still playing, but we can kill it early:
 



# Example 2

bar = sample :loop_amen
sleep 0.5
kill bar