-
... us. // Setting GUI values is asynchronous, so you must use .defer in the system clock. // Also you must check if the window is still open, since Routine will continue for at least // one step after you close the window. b.get( { arg v; {w.i ...
-
... as Polar or Complex number. wait within a routine, yield the number so that the clock can wait for this many beats. (see Routine ) // create a routine by a function fork ( fork { 1.wait; "I did wait" .postln; 1.0.rand.wait; "No you didn't" ...
-
... user to implement the desired kind of synchronization. For sysrt, external MIDI clocks output 24 pulses per quarter note. The responder should count the incoming pulses and multiply the rhythmic value into 24 to determine how many pulses to ...
-
... - there is a scheme to schedule when the change becomes effective: a quant and clock (like elsewhere) and a condition . quant_(beats) Set the quantisation time for beat accurate scheduling. quant can be an array [quant, phase, timingOffset ...
-
... s actually defined in the class Pattern , it is useful to review it here: play (clock, protoEvent, quant) returns an EventStreamPlayer clock The clock that schedules the EventStreamPlayer, defaults to TempoClock.default . Patterns that chan ...
-
... 1), SinOsc .kr( SinOsc .kr(0.2, 0, 10, 10), 0, 400, 700)] } // btw: setting the clock will cause the pattern to sync: p.clock = TempoClock .default; p.clock.tempo = 2.0; p.clock.tempo = 1.0 // patterns also crossfade, if an \amp arg is defi ...
-
... play them separately. The patterns' events get scheduled independently on their clock(s) and run concurrently. None of these patterns need to have any knowledge of the others. One advantage of this approach is that the patterns can be stopp ...
-
... Player is itself a stream which returns scalars (numbers) which are used by the clock to schedule its next invocation. At every call to EventStreamPlayer-next by the clock, the player gets its delta values by querying the Event after it has ...
-
... , 1, \b , 2, \c , 3, \d , 4]); loop Repeat this function. Useful with Task and Clocks. t = Task ({ { "I'm loopy" .postln; 1.wait;}.loop }); t.start; t.stop; defer(delta) Delay the evaluation of this Function by delta in seconds. Uses AppCl ...
-
... emoveAction(f); // or remove all, of course a.action = nil ; GUI Timing: System Clock and App Clock See: AppClock , TempoClock , SystemClock Calls to the gui system from from the lang must be made from the AppClock, since the SystemClock is ...