-
... l; "newMax(%) = %".format(i, val).inform; }; }; } pr_makeResponders { capResp = Task({ var char; var raw = ""; var tmpArr; inf.do{ while({ char= serialPort.next; char.isNil }, { 0.01.wait }); char = char.asAscii; (char != 10.asAscii).if({ r ...
-
... ; data = Array.fill( length, 0 ); } start{ watcher.start; } isPlaying{ ^watcher.task.isPlaying; } stop{ watcher.stop; } } SWPlotterMonitor{ var <>plotter; var <>monitor; *new{ |updater,length,nc=1,dt=0.1,skip=1| ^super.new.init( updater,len ...
-
... stln;}); "".postln; }; doneAction = doneAction ? { "ended".postln; }; routine = Task({ var lastTime; lastTime = 0; notes.do({ |event, i| var synth; (event.absTime - lastTime).wait; function.value( event.note, event.velo, event.dur, event.up ...
-
... [which];\ lagTime = msg[5];\ numSteps = lagTime*fps;\ rFps = fps.reciprocal;\ \ Task (\\ numSteps.do\ |i| \ colors[which] = oldColor.valueBlend(color, i/numSteps);\ window.refresh;\ rFps.wait\ \;\ colors[which] = color;\ window.refresh;\ \, ...
-
... se).play } }).play ) // make sound modulation more drastic // can do this while task runs! ( SynthDef(\xxy, {|out, sustain = 1, freq = 440| var env, son; env = Line.ar(1, 0, sustain, doneAction: 2); son = SinOsc.ar(freq * [1, 1.2, 1.5, 1.7] ...
-
... l time, elapsed time, clock] //use logical beat time so can match up with other tasks running on the tempoclock lastBeat=tempoclock.beats; //lastBeat+1; lastBeatTime= Main.elapsedTime; lastTempo= tempoclock.tempo; this.tick; //"beat!".postl ...
-
... toggles KeyLoop PLAYBACK alt-l toggles LOOPED on/off alt-f FORKS a (non-looped) task - playOnce alt-g GUI opens for the KeyLoop alt-t TOP focus goes to top control that sets current KeyPlayer // not done yet alt-1..9,0 could go to one of to ...
-
... 0.0, 0.0)) .background_(Color(0,0,0)) .font_(GUI.font.new("Optima", 24)) ; r = Task.new({ arg i ; loop({ clockField.string_((thisThread.seconds-runner.startTime).asTimeString) ; 1.wait })// a clock refreshing once a second }).play(AppClock ...
-
... ts ] } } MassEditUChain { var <uchains; var <umarkers; var <units; var <>prepareTasks; *new { |uchains, umarkers| ^super.newCopyArgs( uchains, umarkers ).init; } lockStartTime { ^uchains.any(_.lockStartTime) } lockStartTime_ { |bool| ^uchai ...
-
... .wrap(0, history.size -1); this.refresh; }; } } start { routine.stop; routine = Task({ while { active && this.isClosed.not } { history[ pos ] = value; pos = (pos + 1).wrap(0, history.size -1); updated = true; value = latestValue; this.refre ...