-
... ({ arg item, i; item + 10 }); List [3.2, 12.2, 13, 0.4].minIndex iter returns a Routine that returns the elements one by one. r = Set [10, 2, -3, -4].iter; r.next; r.next; r.next; r.next; // nil. Conversion: asBag Answer a Bag to which all ...
-
... dateInterval > 0 ) { calledUpdate = true; if( updateTask.isNil ) { updateTask = Routine({ while { calledUpdate } { this.prUpdate( checkZoom ); calledUpdate = false; updateInterval.wait; }; updateTask = nil; }).play( AppClock ); }; } { this. ...
-
... nel, minFreq, maxFreq); // grab the number of samples needed sf.openRead(path); Routine.run({ ((sf.numFrames / hopSamps).floor).do({ sf.readData(tmpBuf); // hop BACK from where we were for the FFT pitch tracking sf.seek(frameSize * -1, 1); ...
-
... s, group, bus1, bus2, env, freq, control, task; var cond; cond = Condition.new; Routine.run({ pnotes = CtkProtoNotes( SynthDef(\test, {arg dur, freq, amp; var env, envgen, src; env = Control.names([\env]).kr(Env.newClear(8)); envgen = EnvGe ...
-
... ✔ Fun. ( // CPU demanding ~freqs = {|i| 50 * 1.5.pow(i) }!9; ~numChan = 2; r = Routine{ var sustain = 8, transition = 3, overlap = 4; var period = 1.5 * 2.sqrt; var harms, amps; 0.5.wait; inf.do{ harms = {|i| (i+1) * ~freqs.choose }!60; am ...
-
... , SinOsc.ar(freq, 0, XLine.kr(0.1, 0.0001, 1, doneAction: 2))); }).send(s); ) ( Routine.run({ g = Tendency.new(1760.0, 440.0, Env([0.01, 2.0], [10], \sin), Env([0.01, 2.0], [10], \sin)).asStream(\betaRand); t = Main.elapsedTime; while({ Syn ...
-
... item in nodes, whether playing or not strictCycRout.isNil.if({ strictCycRout = Routine.new({ nodes.do({ arg n; n.yield }); }); }); ^strictCycRout.next } cycle { // returns next non-playing item in nodes // if all nodes playing, returns ear ...
-
... s fit evenly b.showIndex = true; // cursor mode b.readOnly = true; w.front; r = Routine({ 0.1.wait; 30.do({ |i| b.index_(i%size); b.doAction; 0.1.wait; }); 20.do({ |i| b.index_(b.size.rand); b.doAction; [0.1, 0.2].choose.wait; }); 1.wait; n ...
-
... , otherwise this mechanism will fail! freeAllSynthsAndBussesOnReplace { AlgaSpinRoutine.waitFor( condition: { algaPatternSynths.size == 0 }, //wait for all algaPatternSynths to be done func: { this.freeAllInterpSynthsAndBusses; //Free all i ...
-
... ue - oldValue) / steps; // Incremento en cada paso var currentValue = oldValue; Routine.run({ while({currentValue.absdif(value) > stepValue.abs}) { currentValue = currentValue + stepValue; {this.setParameterOSC(string, currentValue, addrFor ...