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.0

Example 0 


# store a reference to a running synth in a variable called foo:
foo = play 50, release: 4
sleep 1
# foo is still playing, but we can stop it early:
stop foo


 
 
 
 
 
 



Example 1 


bar = sample :loop_amen
sleep 0.5
stop bar