-
... drate); } initSCPyduino{ |aPort, aBaudrate| port = aPort; baudrate = aBaudrate; Routine.new({ sp = SerialPort(port, baudrate, crtscts: true); 2.wait; // Allow 2 secs for Arduino auto-reset to happen firmataVersion = "None"; this.sp.put(repo ...
-
... layed on a clock, but streams made from these patterns can be used in scheduled routines or functions as well. Only a scheduling context can ensure precise timing of requests for values. Ptime(repeats) Returns the amount of time elapsed sin ...
-
... tionList.add(motion); }*/ // update method is called from inside SSWorld update routine update { // gravity values are in m/s/s, but we apply it every stepFreq if (gravity) { this.addForce(world.gravity/world.stepFreq) }; if (friction) { th ...
-
... Guide to Patterns Understanding Streams, Patterns and Events - Part 1 Streams & Routines Understanding Streams, Patterns and Events - Part 2 Patterns Introduction Understanding Streams, Patterns and Events - Part 3 ListPatterns Understandin ...
-
... , childdeathsynth, bytesynth, coasynth, meetingsynth, //names of functions and routines strew, findFood, findPartner, eat, determinePartner, doIt, //named indices age=0, sex=1, xPos=2, yPos=3, energy=4, dying=5, cngoa=6; ~beasties = ...
-
... Frames .kr(bufnum) ) * (10 * amp) ) }).store ); ) // start a process ( q.rout = Routine { var dt; loop { dt = exprand(0.01, 1.2); Synth ( \help_PlayBuf , [ \bufnum , q.b[ \apollo ], \rate , 0.06 * [1, 2, 3, -1, -2, -3].choose + 1, \offset , ...
-
... 24,10,7,12, -2,7,-7,0, 10,-2,22,24].scramble + 31].flop; // Run first the Routine, then change patterns ~dseq, ~bseq and ~bseq2 in the upper part ( Routine.run {var c; c = Condition.new; s.freeAll; TempoClock.all.do{|x|x.clear}; s ...
-
... ilters.notNil, { c.data= bandpassFilters[i].filterN(c.data.last); }); }); }; }; Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/fps); if(channels[0].data.size>=fft.fftSize, { calculations.value; if(animate, ...
-
... } // stop == quit? quit { arg repeats=4, onComplete; var procedure = SkipJack( Routine { this.stop; repeats.do { this.sendMyNameToAll(-1); 1.yield; // to return something. }; onComplete.value; procedure.stop; }, 0.5); procedure.start; } st ...
-
... ]); }, {nil}); texttask.stop; texttask.reset; SystemClock.clear; }}; playrout = Routine({ (playfunc.value).yield; (stopfunc.value).yieldAndReset; }); writefunc = { var start, dur, amp, mute, globstart, offset, soundpath, startframe, writeAr ...