-
... nds; 1.yield; win.endFullScreen; 0.3.yield; win.close; newBounds.postln; }.fork(AppClock); } *win2Left {arg fullScreen, menuSpacer=40; var rect, newHeight; fullScreen ?? {fullScreen = this.screenBounds}; newHeight = (fullScreen.height - men ...
-
... // overlap 1 sample for interpolation }; action.value(bufs); }.fork(AppClock); bufs } { "% could not be opened.".format(path).warn; }; }; ) b = ~loadChunks.value(s, "your-file.aiff", action: { "done".postln }); ...
-
... 1; }; w.front; Routine({while({w.isClosed.not}, {u.refresh; (1/2).wait})}).play(AppClock); ) //--animation #2 ( var width= 400, height= 400, cnt= 0; var f= {Pen.fillOval(Rect.aboutPoint(Point(0, 0), width*0.15, height*0.15))}; var m= [ [0.5 ...
-
... alue; win.refresh; }); (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(AppClock); ~openbci= board; ) ~openbci.softReset; ~openbci.start; ~openbci.stop; SerialPort.listDevices;
-
... e; CmdPeriod.remove(this); // does not need to respond to cmd-. any more }.fork(AppClock); } }
-
... parpadeo está activo Routine({ wait(blinkDuration); isBlinking = false; }).play(AppClock); // Pasar la función blink como referencia usando una función anónima //view.action_({ this.blink }); } blink { if (isBlinking.not) { // Verificar si ...
-
... i, amp); }); }; ampRandRateSpec.map(ampRandRateElement.value).wait; }; }).play(AppClock); }, 2, { //ramp ampTask= Routine({ inf.do{|i| var rfre= ampRampFreqSpec.map(ampRampFreqElement.value); var rcur= ampRampCurvSpec.map(ampRampCurvElemen ...
-
... d_(Color(1, 0.2, 0.2)); 4.wait; statusView.background_(Color.gray(0.8)); }.fork(AppClock); }, 0, {//neutral //nothing }, 1, {//success text { statusView.background_(Color(0.2, 1, 0.2)); 4.wait; if(win.isClosed.not, { statusView.background_( ...
-
... control.duration*0.01).max(0.01).wait; index= index+1; win.refresh; }); }).play(AppClock); }); win.front; }; ) //or another animation template using the Image class (faster and can resize) ( var scale= 2; var action; var a= RedGIF.read("~/D ...
-
... ); //0.1-100 uV }); }; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(AppClock); ~openbci= board; ) ~makeNotchFilters.value('50'); ~makeNotchFilters.value('60'); ~makeNotchFilters.value(nil); ~makeBandpassFilters.value('1-50'); ~m ...