Stop synth
stop
[node (synth_node)]
Stop a running synth sound or sample. In order to stop 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 stop foo |
# store a reference to a running synth in a variable called foo: # foo is still playing, but we can stop it early: |
|
bar = sample :loop_amen sleep 0.5 stop bar |