-
... ({ rrand(3, 5)}, Pseq ([1, 2, 3, 4, 5, 6], inf )*4+65), inf ); b = c.asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , b.next.midicps]); 0.12.wait; }) }).play; )
-
... rved for high priority sound related tasks. If you want to control a gui with a Routine or Task, then you must either use the AppClock to play them, or use the defer mechanism, which schedules a Function in the AppClock : ( w= Window .new.f ...
-
... ar(freq, 0, env)) }).add; ) ( a = Prand (#[60, 61, 63, 65, 72], inf ).asStream; Routine ({ loop({ Synth ( \help_sinegrain , [ \freq , a.next.midicps]); 0.2.wait; }) }).play; )
-
... nSeqs@1, snSeqs@2, snSeqs@3, snSeqs@4], Prand([0,1,2,3,4], inf)).asStream; Routine({ OSCSched.global.tdeltaTillNext(4.0).wait; loop({ s.sendMsg(\s_new, \kickTrig1, -1, 1, 0, \t_trig, kSeq.ne ...
-
... s too low will result in inconsistent timing of events scheduled with Tasks and Routines (and "late" messages from the server). However, when set to 0 , events from external controllers (MIDI, GUI etc.) will be processed as soon as possible ...
-
... , 38)).front, Rect (5, 5, 320, 20)); view.onClose_{controller.remove}; // run a routine to change the model's value: r{ 100.do{ model.value_(1.0.rand.postln).changed( \value ); 0.5.wait; } }.play( AppClock ) )
-
... rotate }; }; list; }.value.collect({ arg x; x[0]+(x[1]*16) }); r = Routine({ inf.do{ var velocity = [127, 120, 107].choose; path.do{|note, i| ~lpOut.noteOn(~lpChan, note, velocity); 0.015.wait; ~lpOut.noteOf ...
-
... { this.task.stop; view.background = this.color.copy.alpha_( 0.33 ); this.task = Routine({ var n; n = (this.time / 0.2).asInteger; n.do({ |i| view.background = this.color.copy.alpha_( i.linlin(0,n-1,0.33,0) ); 0.2.wait; }); }).play( AppClock ...
-
... // set initial display value namev.string_(name); updater.isNil.if({ updater = Routine.new({ // routine to update every beat var waitTime; { model.isRunning }.while({ this.updateCounter; if(metro.notNil and: { metro.synth.notNil }) { curre ...
-
... r.dataAction= {|num, data, accel| s.bind{~synth.set(\data, data[~channel])}; }; Routine.run({ inf.do{ fftArray= bus.getnSynchronous(numBins); (1/61).wait; //a tiny bit faster than framerate }; }); win= Window("fft", Rect(10, 100, width, hei ...