-
TRand triggered random number generator TRand.kr(lo, hi, trig) TRand.ar(lo, hi, trig) Generates a random float value in uniform distribution from lo to hi each time the trig signal changes from nonpositive to positive values ( { var trig = ...
-
... ur = 12 / trate; clk = Impulse .kr(trate); pos = MouseX .kr(0, BufDur .kr(b)) + TRand .kr(0, 0.01, clk); pan = WhiteNoise .kr(0.6); TGrains .ar(2, clk, b, 1 , pos, dur, pan, 0.1); }.scope(zoom: 4); ) // 4 channels ( { var b = 10, trate, dur ...
-
... the trig signal changes from nonpositive to positive values ( SynthDef ( "help-TRand" , { var trig, outBus; trig = Dust .kr(10); outBus = TIRand .kr(0, 1, trig); //play on random channel between 0 and 1 Out .ar(outBus, PinkNoise .ar(0.2)) ...
-
... 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" , { arg out=0, p ...
-
... FreeSelf Pause PauseSelf Random Values Rand ExpRand LinRand NRand IRand TIRand TRand TExpRand RandSeed RandID Array Usage Select TWindex to be continued ....
-
... .kr(1 - difficulty, trig); SinOsc .ar( TExpRand .kr(300, 1000, t) * (i + 1)) * TRand .kr(0, 1, t) }.dup(10).sum; // source1 = source1 * Decay.kr(trig, 0.5); detect = PV_HainsworthFoote .ar( FFT ( LocalBuf (2048), source1), threshold: Mouse ...
-
... hich you build into your ugenGraphFunc), and through new ugens such as Rand and TRand . When maximum flexibility is required, it is still possible to compile and send SynthDefs 'on the fly', albeit with SC2-like CPU spikes and a small amoun ...
-
... ur = 12 / trate; clk = Impulse .kr(trate); pos = MouseX .kr(0, BufDur .kr(b)) + TRand .kr(0, 0.01, clk); pan = WhiteNoise .kr(0.6); TGrains .ar(2, clk, b, 1, pos, dur, pan, 0.1); }.scope(2, zoom: 4); ) // 4 channels ( { var trate, dur, clk, ...
-
... eal of variation can be achieved with arguments, or with ugens such as Rand and TRand . See the helpfile SynthDefsVsSynths for more detail. // SynthDefs on the fly s = Server .default; s.boot; ( t = TempoClock .new; r = Routine .new({ 10.do ...
-
... etween (lo, hi), as for numbers. IRand uniform distribution of integer numbers. TRand uniform distribution of float numbers, triggered TIRand uniform distribution of integer numbers, triggered LinRand skewed distribution of float numbers, t ...