-
... 7.0).round.asInteger); }; }; }; }; }, dt: 0.15, name: this.class.name.asString, clock: AppClock); }; } stopAliveThread { aliveThread.stop; aliveThread = nil } }
-
... 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 ...
-
... var <name; var <params; var <string; // the string that defined the voice. var <clockName; var <clockQuant; var <quant; var <tokens; *newFromTokens { | tokenList, verbose = false | var voice = super.new.init; if (voice.setFromTokens(tokenLi ...
-
... 0, 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 defin ...
-
... , 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 ...
-
... s.index, i_out: mixer.inbus.index )); this.event = protoEvent; ^this.play(args[\clock], args[\doReset], args[\quant]); } } + Pattern { playInMixerGroup { |mixer, target, patchType, args| args ?? { args = () }; ^this.asEventStreamPlayer(args ...
-
... = Signal.newClear(longSize); // Make the position match the second hand on the clock, just for fun longPos = ((Date.getDate.second + 45) * longSize / 60).asInteger % longSize; synth = Synth.tail(s, \loudness, [ \in, ~loudbus, \shor ...
-
... 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 ...
-
... ); // create a B-flat major scale in quarter notes // uses XMLVoice's internal 'clock' to keep track of beats [58, 60, 62, 63, 65, 67, 69, 70].do({ arg keynum; y.add( XMLNote (keynum, y.now, \e )); y.now_(y.now.ceil); }); // output the XMLS ...