-
... { mc.descendentsInclude(this).if({ MethodError("% -> % will produce an infinite loop." .format(this, mc), this).throw; }, { // if the dest mixer is routed to another mixer, // place the dest mixer before its destination incr = incr + mc.num ...
-
... Message.(i, slider.value) }; }); }); routine = Routine({ var event, val, slNum; loop { // event: b=num, c=vel event = MIDIIn.waitNoteOn( port ); //slNum = (1: 1, 2: 2, 4: 0, 5: 3).at(event.b.wrap(0,15)); slNum = channels.indexOf(event.b.wra ...
-
... lishing" , 320, 240); n.background(0, 1, 0); n.cmt( "Hello, NodeBox" ); // this loop of 120 times is relatively fast // 1200 iteration is slower, and 12000 is slower still // 120000 hasn't (yet) been tried 120.do({ n.fill(1.0.rand, 0, 0, 1. ...
-
... theseNotes.sort({arg a, b; a.beat < b.beat}); // this also needs to be a while loop! add to theseNotes as needed while({ curNote = (theseNotes.size > 0).if({ theseNotes.removeAt(0); }, { nil }); curNote.notNil; }, { while({ curNote.beat >= ...
-
... pitchStr } } } ClPitchEventNode : ClEventStringNode { parse { |stream| // while loop assumes that the pitch number has already been eaten var ch = stream.next, new = String.with(ch); while { (ch = stream.next).notNil and: { "+-',~=_.>".incl ...
-
... e { (ch = stream.next)/*.debug("ch")*/.notNil and: { boolFunc.(ch).not/*.debug("loop test")*/ } } { str = str ++ ch; }; if(ch.notNil) { stream.pos = stream.pos - 1 }; str // .debug("<< skipUpToCond"); }; }.import((clPatternSet: #[divideEven ...
-
... sFreed); }; ~startAliveThread = { ~stopAliveThread.(); ~aliveThread = Routine { loop { if(~addr.notNil) { ~addr.sendMsg("/alive"); }; 10.wait; }; }; currentEnvironment }; ~stopAliveThread = { ~aliveThread.stop; }; ~setLabel = { |oscpath, la ...
-
... ' argument // This allows to build an additional Function into the Fb1 feedback loop. // It is applied to every array of samples that is result and // next input of the numeric integration procedure. // Obviously then correct integration of ...
-
... faults to repeats = inf, Pseq can be taken without a repeats arg // for endless looping ( ~co = Pseq ([3, 1, 1, 1, 1]); ~fr = Pseq ([1, 1, 1.3, 1.2, 1]); \buzz .pVarGui( ctrReplace: [ \freq , [20, 1000, \exp , 0, 80]], pReplace: [ \cutoff , ...
-
... , { //if size == 1, index from \default var onlyEntry = sendersSet.size == 1; //Loop through sendersSet.do({ | prevSender | var interpBus, interpSynth, normSynth; var interpSymbol, normSymbol; var prevSenderNumChannels, prevSenderRate; var ...