-
... }; }; ~uv.refresh; ) ( Tdef(\refresh, { loop { ~uv.refresh; 1.wait; }; }).play(AppClock); ) // the Pen help file has a lot of examples! Pen.help; ///////////////////////////////////////// //////////// Connecting to the world: ///// 1 - Mic ...
-
... * 0.5) * atorad + 0.5pi, e.value * atorad); Pen.fill; if((actRotate.abs > 0), {AppClock.sched(frameInterval, {w.refresh})}, {count = 0;}); if(count%4 == 0, {panBus.set((actPoint.theta + (0.5pi)).wrap2(pi) * rtoang)}); }; c.mouseMoveAction_ ...
-
... "running cmdfunc".postln; if(onOffButt.value == 1, { onOffButt.valueAction_(0); AppClock.sched(0.5, { onOffButt.valueAction_(1); }); }); }; CmdPeriod.add(cmdPeriodFunc); win.onClose_({ var t; CmdPeriod.remove(cmdPeriodFunc); XQ.globalWidget ...
-
... t| act.string == "Add Multiple..." }).menu.front; plusButtonTask = nil; }.fork( AppClock ); } { plusButtonTask = nil; } }) .action_({ if(scoreView.selectedEvents.notNil) { scoreView.duplicateSelected; } { if( true ) { plusButtonTask !? _.st ...
-
... lf.changed(\activateButtons, channels); self.taskRunning = true; self.task.play(AppClock); }; ~stopTask = { |self| self.selected.clear; self.taskRunning = false; self.resetTask(true); self.watcher.remove; }; ~resetTask = { |self, hardReset= ...
-
... ze, { usr.refresh; }); (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(AppClock); ~channels= channels; ~openbci= board; ) ~openbci.softReset; ~openbci.start; ~openbci.stop; SerialPort.listDevices; //check the micro volt root mean s ...
-
... ol.duration*0.01/rate).max(0.01).wait; index= index+1; win.refresh; }); }).play(AppClock); }); win.onClose_({img.free}); win.front; ^win; } //--private prRead {|path| var file= File(path, "rb"); var separator; this.prReadHeader(file); if(ty ...
-
... raw); usr.refresh; }); (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(AppClock); //--menus pw= win.bounds.width*0.125; po= win.bounds.width-((pw+2)*2); StaticText(win, Rect(po, 1, pw, 20)).align_(\center).string_("Vert Scale"); St ...
-
... n: This calls the superclass' startup, which among other things initializes the AppClock and the top-level Environment . Main's startup then stores Server.default in the interpreter variable s, sets the platform default's GUI kit, calls a P ...
-
... ervers.do ({ |srv| srv.boot; 1.wait; }); ~servers.do( _ .makeWindow); }, clock: AppClock); ) ( ~sDef = SynthDef ( \dSynth , { //an electronic drum synthesizer arg outBus, bodyIFreq = 100, bodyEFreq = 45, sweepTime = 0.1, bodyAttack = 0.001, ...