-
... 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 ...
-
... k{ (0, 0.01 .. 1).do{ |pos| w.view.background = g.at(pos); 0.01.wait; }; }.play(AppClock) ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Gradient.schelp link::Classes/Gradient::
-
... e+(1/60); usr.refresh; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(AppClock); )
-
... thin a routine or scheduled function that is executing on some clock other than AppClock. AppClock is the only clock that can execute GUI manipulation because it is a lower priority thread. If the CPU is busy with audio synthesis or maintai ...
-
... o.addFirst(flt.filter(slider.value)); plot.value= fifo; (1/50).wait; }; }).play(AppClock); ) ⧉ ✔ helpfile source: /tmp/scquark_hs/redSys/HelpSource/Classes/RedSmoothUD.schelp link::Classes/RedSmoothUD::
-
... fifo; "trend %".format(flt.trend.round(0.0001)).postln; (1/50).wait; }; }).play(AppClock); ) ⧉ ✔ helpfile source: /tmp/scquark_hs/redSys/HelpSource/Classes/RedSmooth2.schelp link::Classes/RedSmooth2::
-
... 00,400),rrand(-80,0).dbamp) }.play(outbus:m.busses.choose); 0.1.wait; } }).play(AppClock) ⧉ ✔ 15 busses seems to be maximum for the SynthDef. 16 results in: GraphDef_recv maximum number of interconnected buffers. Use 2 separate BusMeters if ...
-
... .. { c = Color.blue; 100.do({ m.startColor_(c = c.vary(1)); 0.1.wait }); }.fork(AppClock); ) m.bounds = Rect(100, 20, 200, 260); m.stop; ///////////// Fullscreen ( w = Window("SCTV", Rect(0, 0, 360, 280), border: false).front; b = SCButton( ...
-
... e+(1/60); usr.refresh; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(AppClock); }; ) //click and drag //press cmd+period to stop //change the physics while running ~ps.setGravity(0, 1, 0); ~ps.setGravity(0, -3, 0); ~ps.setDrag(0. ...
-
... rColliderがイベントをスケジューリングする時に使用する3つのクロックを示します。 SystemClock.play(r.reset); // 最も正確 AppClock.play(r.reset); // GUIで使用する TempoClock.new.play(r.reset); // 主に拍でスケジューリングするために使われる ⧉ ✔ ///////////////////////////////////////////////////////////////// ...