-
... /////////////// // scale the duration of the envelope for every new synth ( r = Routine ({ loop({ Synth ( "timeScale" , [ \ts , 0.01.rrand(0.3)]); 0.5.wait; }) }); ) r.play /////////////////////////////////////////////////////////////////// ...
-
... 0, 7, 12] + 52; quantArr = [b.rate, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]; r = Routine .new({ (beatsArr.size).do({ |i| quant = quantArr[i]; [ "Quant is" , quant].postln; beats = beatsArr[i]; b.sched(4, fn.value(freqsArr7, -0.5), durStrm.va ...
-
... ntence", wait: true).play; "... and now second one done.".postln; ) // Within a Routine, you can add wait times, so you can stop the routine // between spoken sentences ( fork { "begin ...".postln; (type: \say, text: "first sentence ... ", ...
-
... load one of the auxilliary data files into a Buffer and pass the bufnum to the routine. These files take the form: QspeckernN1024SR44100.wav QspeckernN2048SR44100.wav QspeckernN4096SR44100.wav QspeckernN8192SR44100.wav QspeckernN2048SR4800 ...
-
... wnAction= keyDownAction; busNumber.keyDownAction= keyDownAction; cursorUpdater= Routine({ var lastFrame= 0; inf.do{ if(spf.frame!=lastFrame, { lastFrame= spf.frame; waveView.timeCursorPosition= spf.frame; }); 0.01.wait; }; }).play(AppClock) ...
-
... 5);w.close;}); //defer or crash, because FreqScopeWindow Class contains its own routine for cleaning up on CmdPeriod w.onClose_({n.free;f.free;freq.free}); }); )
-
... |x, i| notchFilters[i].filterN(x)}; s.bind{mindSynth.set(\data, d)}; }); }; }); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); win.refresh; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(App ...
-
... m; Pwhile1 embeds stream values singly Pwhile1 : Pwhile { asStream { |cleanup| ^Routine({ arg inval; this.embedInStream(inval, cleanup) }) } embedInStream { |event, cleanup| var stream = pattern.asStream, next; cleanup ?? { cleanup = EventS ...
-
... rverLogGui } getSortedEvents { arg tail,callback; // list in logical time order Routine({ var q,events,since,a,b; q = PriorityQueue.new; msgs.do({ |it| q.put(it.eventTime,it) }); events = Array.fill(msgs.size,{ |i| if(i % 25 == 0,{0.05.wait ...
-
... t= try{SerialPort(path, 115200, crtscts: true)}; var sendOsc; var on= true; var routineSerial, routineGui; var matchArr, matchArrCopy, matchFunc, matchIndex; var matchArr2, matchArr2Copy, matchFunc2, matchIndex2; var lastArr= Array.newClear ...