-
... tangent. sinh Hyperbolic sine. cosh Hyperbolic cosine. tanh Hyperbolic tangent. rand Random number from zero up to the receiver, exclusive. rand2 Random number from -this to +this. linrand Linearly distributed random number from zero to thi ...
-
... at the following example: ( var n = 8; { Mix .fill(n, { SinOsc .ar(500 + 500.0.rand, 0, 1 / n) }) }.play; ) The Function will be evaluated n times, each time creating a SinOsc with a random frequency from 500 to 1000 Hz (500 plus a random ...
-
... int. This distinguishes floating point numbers from integer expressions like: 8.rand examples of floats : 0.39 98.6 1.0 -0.5 Exponential notation is also supported. 1.2e4 1e-4 The constant pi can be appended to a number to create floating p ...
-
... 50, intv=19, timescale=1, curve=0, loopnode=0| var env = EnvGen .kr( Env ({ 1.0.rand2 }!11, {1.0.rand}!10, curve, releaseNode: 9, loopNode: loopnode), timeScale: timescale); var pitch = (env * [1, 0.33, -1] * intv).midiratio * freq; Splay . ...
-
... on) }; q.chooseNoise = { [ { PinkNoise .ar}, { WhiteNoise .ar}, { LFNoise2 .ar( Rand (100, 1000))}].choose.value}; q.filterInput = { |q, in| [ { BPF .ar(in * 15, NamedControl .kr( \freq , 800), 0.2) }, { R HPF .ar(in, NamedControl .kr( \fre ...
-
... = EnvGen .kr( Env .perc(0.03, sustain), 1, doneAction:2); 3.do { var d; d = exprand(0.01, 1); u = SinOsc .ar(d * 300, u, rrand(0.1,1.2) * d, 1) }; Out .ar(out, Pan2 .ar( SinOsc .ar(u + 1 * freq, 0, amp * env), pan)); }).store; ) s.boot; Pd ...
-
... inf ).asStream; freq = Pseq ([30,40,42,40], inf ).asStream; cutoff = Pfunc({500.rand2+1000}).asStream; rezz = 0.5; inf .do({saw.set( "freq" , freq.next.midicps, "cutoff" , cutoff.next, "rezz" , rezz, "amp" , 0.1, "out" , 0); (wait.next*offs ...
-
... .0, 1.0), a.pulse(7, 0.5pi, 3, 0.5, 0.1).postln , true , true , true ); y.free; random methods: rand(lo, hi) exprand(lo, hi) linrand(lo, hi) rand2(val) coin(prob)
-
... ) ( //var f, g; f = File ( "test3" , "wb" ); f.inspect; 100.do({ f.putFloat(1.0.rand); }); f.inspect; f.close; g = File ( "test3" , "rb" ); 100.do({ g.getFloat.postln; }); g.inspect; g.close; ) ( //var f, g; f = File ( "test3" , "r" ); f.in ...
-
... ls right now. ( s.boot; p = ProxySpace .push(s); ) ~out.play; ~s1 = { Blip .ar( Rand (32,15), 100, 0.5) }; ~s2 = { SinOsc .ar(740, 0, 0.1) }; ~s3 = { Pulse .ar(140, 0.2, 0.1) }; ~out = { Pan2 .ar(~mix.ar(1), MouseX .kr(-1,1)) }; ~mix.read(~ ...