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
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:
bar = sample :loop_amen sleep 0.5 kill bar