2 summary:: When input falls below a threshhold, evaluate doneAction.
3 categories:: UGens>Synth control, UGens>Analysis>Amplitude
8 When input falls below a threshhold, evaluate doneAction. If the input
9 signal starts with silence at the beginning of the synth's duration, then
10 DetectSilence will wait indefinitely until the first sound before
11 starting to monitor for silence.
25 When input falls below this, evaluate
32 The minimum duration for which input must fall below
34 code::amp:: before this triggers.
39 An integer representing the doneAction. See
41 link::Reference/UGen-doneActions:: for more detail.
44 This UGen outputs 1 if silence is detected, otherwise 0.
51 SynthDef("detectSilence-help", { arg out;
53 z = SinOsc.ar(Rand(400, 700), 0, LFNoise2.kr(8, 0.2).max(0));
54 DetectSilence.ar(z, doneAction:2);
59 s.sendMsg("/s_new", "detectSilence-help", -1);
60 s.sendMsg("/s_new", "detectSilence-help", -1);
61 s.sendMsg("/s_new", "detectSilence-help", -1);
66 s.sendMsg("/s_new", "detectSilence-help", -1);