DetectSilence when input falls below a threshhold, evaluate doneAction

superclass: UGen

*ar(input, thresh, time, doneAction) 

*kr(input, thresh, time, doneAction) 

input - any source

thresh - when input falls below this, evaluate doneAction

time - the minimum duration of the for which input must fall below thresh before this triggers. The default is 0.1 seconds.

doneAction - an integer representing a done action. See UGen-doneActions for more detail.

If the signal input starts with silence at the beginning of the synth's duration, then DetectSilence will wait indefinitely until the first sound before starting to monitor for silence. 



SynthDef("detectSilence-help", { arg out;

var z;

z =, 700), 0,, 0.2).max(0));, doneAction:2);, z);



s.sendMsg("/s_new", "detectSilence-help", -1);

s.sendMsg("/s_new", "detectSilence-help", -1);

s.sendMsg("/s_new", "detectSilence-help", -1);




s.sendMsg("/s_new", "detectSilence-help", -1);

[0.5, 1].choose.wait;




Berlin: clubs bars cafes nightlife going out