-
... <gravity; var <logging = false; var logTime; var <isPlaying = false; var replayTask; var oscListener; var action; var logger; *new { ^super.new.initOC; } initOC { acceleration = Array.newClear(3); //[x,y,z] components of linear acceleratio ...
-
... t makes sense to schedule objects that will take some action . Function Routine Task Routines and Tasks will be covered in the next section, and Functions we have already seen. There are some others, but these are the best starting point. C ...
-
... , 10.rand) monitorBus(bus, rate, colour) uses the highlight feature to create a Task reading the highlight location from a 2-channel control-rate Bus , as follows: // Using the "h" created in the above example... s.boot; b = Bus .control(s, ...
-
... "Update a fader", "Fader1", 600, 200, 100, 724); // Automate to move p = 0; t = Task({ loop { l.fader("Update a fader", "Fader1", p); p=p+50%924; 0.2.wait; }}).play; t.stop; // Add 30 faders to Lemur on a new page. l.page("Bunch of faders") ...
-
... outine; // for prepared events var <>preparedEvents; var isPlaying = false; var task; var <>currentTimeToNext; var <>releaseRunningMin = inf; // by default, only release "inf" duration chains *initClass { argSpecs = [ ArgSpec( 'pattern', [1 ...
-
... ts OS thread ⧉ ✔ For convenience pauseable scheduling can be implemented with a Task . Task.new takes two arguments, a function and a clock, and creates it's own Routine . If you don't specify a clock, it will create a TempoClock for you. S ...
-
... domSeed , [ \freq , rrand(440, 700)]); 0.25.wait; }) }).play; ) // make a reset task ( d = 1250; // seed t = Task ({ loop({ x.set( \seed , d, \tbus , 1.0); r.randSeed = d; 0.1.wait; x.set( \tbus , 0.0); 1.9.wait; }) }); ) // sound starts to ...
-
... e scheduler and releases the OS thread running the scheduler. clear removes all tasks from the scheduling queue. tempo returns the current tempo in beats per second. tempo_(newTempo) sets the current tempo in beats per second. t.tempo_(2.0) ...
-
... outine; // for prepared events var <>preparedEvents; var isPlaying = false; var task; var <>currentTimeToNext; var <>releaseRunningMin = inf; // by default, only release "inf" duration chains *initClass { argSpecs = [ ArgSpec( 'pattern', [1 ...
-
... uffers Scheduling and Sequencing Scheduling Events Sequencing with Routines and Tasks Sequencing with Patterns