-
... n.lineTo(Point(img.width-x, y)); lastIndex= index; }); }; Pen.stroke; }; }); }; Routine({ var numPointsToDraw; var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/fps); if(buffer.accelBuffer.size>0, { //skip frame if no ...
-
... n.stream // stream is a "soft" method "defined" in the environment (a getter) a Routine Mimicking object-oriented behavior using Proto ( a = Proto ({ // class/instance variables are defined dynamically, here and at run time // distinction b ...
-
... n.stream // stream is a "soft" method "defined" in the environment (a getter) a Routine Mimicking object-oriented behavior using Proto ( a = Proto ({ // class/instance variables are defined dynamically, here and at run time // distinction b ...
-
... vert time into level timeSpec = ControlSpec.new(start, end, warp); guiUpdater = Routine({ startTime = thisThread.clock.beats; { (thisThread.clock.beats - startTime) <= dur }.while({ this.level_(timeSpec.map( (thisThread.clock.beats - startT ...
-
... , use: // [["Stopped", { arg proc, group; proc.play }, { arg v; { /* the player routine */ } }], // ["Playing", { arg proc, group; proc.stop }, nil]] var <voicer, <processes, // array of VoicerProcess <view, <value = 0; // current process t ...
-
... , use: // [["Stopped", { arg proc, group; proc.play }, { arg v; { /* the player routine */ } }], // ["Playing", { arg proc, group; proc.stop }, nil]] var <voicer, <processes, // array of VoicerProcess <view, <value = 0; // current process t ...
-
... vert time into level timeSpec = ControlSpec.new(start, end, warp); guiUpdater = Routine({ startTime = thisThread.clock.beats; { (thisThread.clock.beats - startTime) <= dur }.while({ this.level_(timeSpec.map( (thisThread.clock.beats - startT ...
-
... m; Pwhile1 embeds stream values singly Pwhile1 : Pwhile { asStream { |cleanup| ^Routine({ arg inval; this.embedInStream(inval, cleanup) }) } embedInStream { |event, cleanup| var stream = pattern.asStream, next; cleanup ?? { cleanup = EventS ...
-
... rEvent = max(this.messages.size - scrollSize,0).round(scrollSize) ); scroller = Routine.run({ loop { this.updateNav; 10.wait; } },clock:AppClock); },bounds ?? {Rect(0,0,1200,1300)}) } updateNav { if(nav.notClosed,{ navMax = this.messages.si ...
-
... empty }); if(Main.elapsedTime-timer<0.5, { //single click stay open? ^nil; }); Routine({ var val; if(currentLeaf.size>0, { //mouse released on leaf? if(allowsReselection or:{currentLeaf!=value}, { val= lst[xIndex].selectedIndex; numFlashes ...