-
... x.notNil}; }.flat; syns= {Synth(\imp2)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.strokeColor= Color.white; sprs.do{|spr| spr.update; //--render springs Pen.moveTo(spr.object.loc.asPoint); Pen.lineTo(spr.target.loc.asPoin ...
-
... x.notNil}; }.flat; syns= {Synth(\imp)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.strokeColor= Color.white; sprs.do{|spr| spr.update; //--render springs Pen.moveTo(spr.object.loc.asPoint); Pen.quadCurveTo(spr.target.loc.a ...
-
... , nil, 15, pixelSize); //world,loc,vel,acc,mass,size }; }; //--loop w.draw{ Pen.smoothing_(false); Pen.strokeColor= Color.green; rep.loc= w.mouse/[wn, hn]; Pen.strokeRect(Rect.aboutPoint(rep.loc.round.asPoint*[wn, hn], pixelSize, pixelSize) ...
-
... 0, 1, ~initSize.value)}.dup(seeds-1); //--loop w.draw{ var free, frozen; //Pen.smoothing= false; Pen.strokeColor= Color.black; //--separate free and frozen objects free= world.objects.select{|o| o.vel!=still}; frozen= world.objects.select{ ...
-
... lWidth = 80; // same as EZSlider vw.applySkin( RoundView.skin ); // compat with smooth views if( resize.notNil ) { vw.view.resize = resize }; ^vw } setView { |view, value, active = false| { // can call from fork value = this.constrain( valu ...
-
//f.olofsson 2019 SGUIelement { //TODO optional smoothing, rounding subclasses? var <value, lastValue; var viewsSpecs, defaultSpec, lastViewValue; var >action; var softSetLastTime; *new { ^super.new.initSGUIelement; } initSGUIelement { valu ...
-
... 2), freq * filterHarmonic) ); //Output stages with a tiny bit of compression to smooth things out: snd = Mix.ar([snda, sndb, sndc]) * (amp / 3); snd = Limiter.ar(snd, amp); DetectSilence.ar(in: snd, amp: 0.0001, time: 0.5, doneAction: 2); O ...
-
... nt. point: a Point object, specifying the position produced by this udef lag: a smoothing time for changes in the position. This uses a second-order filter, which may cause slight oscillations at beginnings and endings of movements. Changin ...
-
... convert to seconds var slewDelay = 0.3; // note: this needs to be improved ... smoother var slewGain = 0.1; var slewFilter = 0.3; var slewPanning = 0.030; var outsig; // limit cutoff freq range and smooth changes lpHz = lpHz.clip(5.0, 2000 ...
-
... nt 0 <= x0 < 1 we can calculate p as below. // 'amount' indicates the amount of smoothing: // amount == 0: in signal isn't altered // amount == 1: in signal is shaped by full sine fragment // amount expected to be >= 0 and <= 1 SmoothClipS ...