-
... d at some future beat - usually the next beat or next 4 beats (bar). Arguments: task A Function . The function is passed tick, time and clock as first three arguments. quant 1 plays on the next beat, 4 on the next bar etc. Also fractions of ...
-
... ~controller.remove; ~controller = nil; ~buffer.free; }, get: { | ev, del = 0 | Task({ del.wait; ev[\server].sync; ev[\buffer].getn(0, ev[\display].value.size, { | vals| if (ev[\msg] != \signal) { vals = vals.clump(2).collect { |a| [ a[0], ...
-
... ls.setData( 9, vals.copyToEnd(1); ) } ) }; processes.put( 8, "motiontrackosc"); Task({ 5.0.wait; this.camera.hide(1); this.camera.subscribeDir(1); 1.0.wait; internals.add( \headx, [9,0]); internals.add( \heady, [9,1]); internals.add( \heada ...
-
... messages { a=~function.play; s.sync; a.set(\amp, 1); a.set(\t_trig, 1 ); // t = Task({ { a.set(\t_trig, 1); 1.wait; a=~function.play; s.sync; }.loop }); t = Task({ { a.set(\t_trig, 1); 0.2.wait; }.loop }); t.start; }.fork; a.set(\c1, 30); a ...
-
... \clock , window.view.bounds.insetBy(10,10), d.hour, d.minute, d.second ) }; t = Task ({ loop { d.localtime; { if( w.notNil && { w.dataptr.notNil }) { w.refresh; } }.defer; 1.0.wait } }).start; w.onClose_({ t.stop; }); w.refresh; ) ( // post ...
-
... f key / value pairs for the HSpar synth(s). latency - SimpleNumber (seconds). asTask(clock, quant, hsStop, hsPlay, switchStop, newEnvir, removeCtrWithCmdPeriod) Returns a wrapper Task, which may be passed to a VarGui object. Playing and sto ...
-
... outAll; }); }); // now really start the server, then load setup in doWhenBooted Task { 0.5.wait; s.quit; // sometimes the server must be quit first, 1.wait; // and waiting between steps can be helpful. // tell me the new server configuratio ...
-
... f the main Thread: Code evaluated in code editor Code evaluated on command line Tasks scheduled on any Clock Functions evaluated in response to incoming OSC and MIDI messages This means that thisThread will always initially point to the mai ...
-
... messages { a=~function.play; s.sync; a.set(\amp, 1); a.set(\t_trig, 1 ); // t = Task({ { a.set(\t_trig, 1); 1.wait; a=~function.play; s.sync; }.loop }); t = Task({ { a.set(\t_trig, 1); 0.2.wait; }.loop }); t.start; }.fork; a.set(\c1, 30); a ...
-
... p, Pwhite(0.3, 0.6), \decay, 3 ).play; ) // bass ( b = Task({ var delta, dur, note; dur = Prand([10, 15], inf).asStream; note = Pwrand([145, 290], [0.8,0.2], inf).asStream; while { ...