-
... plied as is supplied to Routine. ( var a, b, c; a = Prout.new({ 3.do({ arg i; 3.rand.yield; }) }); // make two streams from the pattern b = a.asStream; c = a.asStream; 4.do({ b.next.postln; }); // print 4 values from first stream 4.do({ c.n ...
-
... 3| var snd, blow; // pulse with modulating width snd = Pulse.ar((Rand(-0.03, 0.05) + freq.cpsmidi).midicps, 0.48 + LFNoise1.kr(0.06, 0.1), 0.2); // add a little "grit" to the reed snd = Disintegrator.ar(snd, 0.5, 0. ...
-
... .5| var trig; trig = CoinGate.kr(prob, Impulse.kr(10)); Out.ar(out, SinOsc.ar( TRand.kr(300.0, 400.0, trig), 0, 0.2 ) ) }).play; ) a.set(\prob, 1.0); a.set(\prob, 0.0); a.set(\prob, 0.1); ( a = SynthDef("help-TCoin", { |out = 0, prob = 0.5| ...
-
... w(w,Rect(100,100,200,200)); // nil bounds f = FlowView(c); c.background = Color.rand; f.background = Color.rand; cb = c.absoluteBounds; fb = f.absoluteBounds; this.assertEquals( cb.origin, fb.origin, "with no supplied bounds, origin should ...
-
... Spec is used. Examples Ndef(\test, { |freq=200| Splay.ar(SinOsc.ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef(\test).play(vol: 0.1); // example of softSet, softSet which knows lastVal, // softVol_ and softVol_ which knows lastVol: ( w = W ...
-
... stAddr(n.hostname, n.port); Tdef(\toscTest, { inf.do { n.sendMsg('/accxyz', 1.0.rand2, 1.0.rand2, 1.0.rand2); if (0.1.coin) { n.sendMsg('/xfader'.postln, 1.0.rand); }; if (0.1.coin) { n.sendMsg("/1/fader4".postln, 1.0.rand); }; 0.1.wait; }; ...
-
... ing). a = [nil, 1, 2, 3, "wort", "1", [pi, 2pi]]; a.any { |x| x.matchItem(10000.rand) }; // true always ⧉ ✔ Function-matchItem Test item by passing it to a function which should return a Boolean . a = [10, 20, 30, { |item| item.isPrime }]; ...
-
TIRand: Filter: Description Class methods ar kr Inherited class methods Instance methods Inherited instance methods Examples Classes | UGens > Random'>Random | UGens > Triggers'>Triggers TIRand : UGen : AbstractFunction : Object Triggered i ...
-
... , ascale = 1, dscale = 1| var n = q.numChans ? 2; var mods, snds; // var dist = Rand(0, 7); // choose new random distrib when running // var addd = exprand(0.001, 1); // choose new random distrib when running dist = dist.lag(1); addd = addd ...
-
... = 0, freq = 400, att = 0.005, rel = 0.1, amp = 0.1| var sig = { SinOsc.ar(freq, Rand(0, 2pi)) } ! 2; sig = sig * EnvGen.ar(Env.perc(att, rel, amp), doneAction: 2); OffsetOut.ar(out, sig); }).add; SynthDef(\saw_grain, { |out = 0, freq = 400, ...