2 summary:: constrain the range of output values by wrapping
3 related:: Classes/SimpleNumber
4 categories:: Streams-Patterns-Events>Patterns>Math
7 Note: this is equivalent to pattern.wrap(lo, hi)
13 SynthDef(\help_sinegrain,
14 { arg out=0, freq=440, sustain=0.05;
16 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
17 Out.ar(out, SinOsc.ar(freq, 0, env))
34 Synth(\help_sinegrain, [\freq, x.next.debug,\dur,0.3]);