-
... * numdims, numinputchannels); if(init.notNil){ Task{ server.sync; init.switch( \rand, { this.initBufRand(buf) }, \gridrand, { this.initBufGridRand(buf, netsize, numdims) } ) }.play(AppClock); }; ^buf; } *initBufRand { |buf, minval = -1, max ...
-
... ed class methods Instance Methods Inherited instance methods Examples ( // Dust randomly triggers Decay to create an exponential // decay envelope for the WhiteNoise input source { z = Decay.ar(Dust.ar(1, 0.5), 0.3, WhiteNoise.ar); DelayL.a ...
-
... // works "1234567890".do { |char, i| KeyPlayer(\prez).putDown(char, { |char| // randomize Settings using the key's ascii number as random seed NTMI.slots.nowPlaying.do({ |px| var pres = NdefPreset(px); var newSet = pres.getSetNames.wrapAt(c ...
-
... ostColor_( Color .black); ( r = Routine ({ 10.do({ Document .postColor_( Color .rand); "There is no blue without yellow and without orange." .postln; 0.5.rand.yield; }); Document .postColor_( Color .black); }); ) r.play; r.stop; alwaysOnTop ...
-
... ar(440, 0, 0.3) }.play; ) // an .ir rate input, a float or an ir rate ugen like Rand would work ( { EnvGen .kr( Env .asr( 0.1, 1.0, 0.5, \welch ), 1.0, Rand (0.1, 1.0), timeScale: 0.1 ) * SinOsc .ar(440, 0, 0.3) }.play; )
-
... eq ([50, 45], inf )) ]).play ) ( // Ppars can be nested Ppar ([ Pbind ( \dur , Prand ([0.2, 0.4, 0.6], inf ), \midinote , Prand ([72, 74, 76, 77, 79, 81], inf ), \db , -26, \legato , 1.1 ), Pseq ([ Pbind ( \dur , 3.2, \freq , Pseq ([ \rest ...
-
... { var number, freq, phase, dur, amp; if ( 0.68.coin ){ number = 1.0.rand; phase = number.linlin( 0, 1, 69, 193 ); freq = number.linlin( 0, 1, 0.37, 0.047 ).rrand( number.linlin( 0, 1, 0.6, 0.086 ) ); freq = Pseq( [ f ...
-
... .ar(z, pan)); }).add; s.sync; //--objects { var loc= RedVector2D[width, height].rand; //initial xy location var mass= 1.rrand(10); RedAgent(world, loc, RedVector2D[0.001, 0.001].rand2, nil, mass, mass) //world,loc,vel,acc,mass,size .maxForc ...
-
... RedVector2D[px+15, py+15]; var obj= RedAgent(world, loc, RedVector2D[0.5, 0.5].rand2, nil, 1, 10); //world,loc,vel,acc,mass,size obj.state= (\cell: 2.rand, \neighbours: 0); px= px+(obj.size*2-1); if(px>(width*0.9), { px= 0; py= py+(obj.siz ...
-
... Part= RedParticle(world, RedVector2D[width*0.5, height*0.9], 0, RedVector2D[0.5.rand2, -5.0.rrand(-10)], 1, 3.0.rand).age_(1000); sys.add(newPart); //add it to the system Synth(\noise, [ //create a corresponding synth \freq, newPart.size.li ...