-
... new particle and update the old ones var newPart= RedParticle(world, w.mouse+5.rand2, 0, RedVector2D[2.rand2, -10.rand], 1.5, 5.rand).age_(40.rrand(50)); sys.add(newPart); //add it to the system synths.put(newPart.hash, Synth(\sine)); //cr ...
-
... * ( t = Steno.new; VarDiff.new.install(t); t.diff.diff1; t.quelle(\a, { Blip.ar(Rand(4, 16)) * 0.2 }); t.quelle(\b, { Saw.ar(Rand(400, 700)) * 0.2 }); t.filter(\f, { |input| CombL.ar(input, 0.2, Rand(0.01, 0.02), Rand(0.4, 2) ) }); t.diff.d ...
-
IRand IRand(lo, hi) Generates a single random integer value in uniform distribution from lo to hi ( SynthDef ( "help-IRand" , { Out .ar( I Rand (0, 1), //play on random channel between 0 and 1 FSinOsc .ar(500, 0, Line .kr(0.2, 0, 0.1, doneA ...
-
ArrayGeneratorDef( \random, { |f, n = 1| var range; range = f.get( \range ); thisThread.randSeed = f.get( \seed ); n.collect({ |i| range[0] rrand: range[1] }); }, [ \range, [0.0,1.0], \seed, 12345 ], { |f, obj| [ \range, if( obj.minItem == ...
-
PRand UGenPatterns quark library superclass: Pattern based on Rand PRand(lo, hi, length) lo (default: 0) hi (default: 1) length number of values produced (default: inf) // example s.boot; a= Pbind ( \dur , 1/3, \legato , 0.4, \midinote , PR ...
-
ArrayGeneratorDef( \linrand, { |f, n = 1| var range; range = f.get( \range ); thisThread.randSeed = f.get( \seed ); n.collect({ |i| 1.0.linrand.linlin(0,1,*range); }); }, [ \range, [0.0,1.0], \seed, 12345 ], { |f, obj| [ \range, if( obj.min ...
-
... (nil, [ \s_new, \Oscer1, 1001, 1, 0, \freq, 26.midicps, \envLev, rrand(0.6, 0.8), \nextTime, nextTime ]); (nextTime*2).wait; }); }).play; Routine({argnextTime; varn = 7; OSCSched.global.tdeltaTillNext(4.0) ...
-
... rrent < lonext } { current = current.fold(lonext,hinext); direction = 1; }; }, \rand, { arr = (lo.next..(hi.next)); amb = arr.last - arr.first; hist.do({ |item| arr.remove( item ) }); current = arr.choose; hist = hist.addFirst( current )[.. ...
-
... olor Colors, Gradients and SCImages can be used with these getter/setters. ( // random colors w = Window ( "colorful" , Rect ( 200 , 200 , 250 , 120 ) ).front.decorate; 7 .do({ |i| RoundSlider ( w, 30 @ 100 ) .knobColor_( Color .rand( 0 , 0 ...
-
my hobbit: adding random arrays of LFO everywhere (bonus: a glitch i don't know where it come from) ( SynthDef(\bass, { arg freq = 440, amp = 0.5, gate = 1; var snd, env, oscfreq, output; var lfo; oscfreq = {freq * LFNoise2.kr(Rand(0 ...