-
... f( \p_step, { |unit, lo = 0.0, hi = 1.0, steps = 12| { var current = 0; current.linlin( 0, 1, lo.next, hi.next ).yield; inf.do { |i| current = (current + ((1/steps.next).clip2( 1.0e12 ))).wrap( 0.0, 1.0 ); current.linlin( 0, 1, lo.next, hi. ...
-
... f( \p_step, { |unit, lo = 0.0, hi = 1.0, steps = 12| { var current = 0; current.linlin( 0, 1, lo.next, hi.next ).yield; inf.do { |i| current = (current + ((1/steps.next).clip2( 1.0e12 ))).wrap( 0.0, 1.0 ); current.linlin( 0, 1, lo.next, hi. ...
-
... 1; var values = [0, 0]; var min; if(thisPolarities[0] == \uni) { values[0] = x.linlin( super.interactionRect.left, super.interactionRect.right, 0, (nDivX - 1) ); } { nDivX = (nDivX * 2) - 1; values[0] = x.linlin( super.interactionRect.left ...
-
... 0], ab[1]) } } mapVector { |v| ^this.constrain( this.prDoFlopWith(v){ |a,b,x| x.linlin(0, 1, a, b, \none) } ) } unmapVector { |v| ^this.prDoFlopWith( this.constrain(v) ){ |a,b,x| x.linlin(a, b, 0, 1, \none) } } asNRect { ^this } moveBy { |v ...
-
... tor( "slices" ), MenuAction( "Align slices", { this.slices = (..slices.size-1) .linlin( 0, slices.size-1, slices[0], slices.last ).collect(_.asInteger); }), Menu( *((2..9) ++ (10,12..16) ++ (20,24..32)).collect({ |i| MenuAction( "%".format( ...
-
... ute=0, solo=1; (Ndef.ar('filterTrack_3_2', 1) * volume.dbamp.lag(lagTime) *mute.linlin(0,1,1,0).lag(0.1)*solo.lag(0.1) )}); Ndef('track3').set('volume', 0, 'lagTime', 0, 'mute', 0, 'solo', 1); == radpostcont == (none) >> fx t 3 10 pch == ra ...
-
... ness = 0.1| radius = radius.max(1.0e-10); point = point - center; point = point.linlin( radius.neg, radius, -1, 1, \none ); point = Select.kr( clipMode, [ point.softclip2(1, clipSoftness ), point.softfold2(1, clipSoftness ), point.wrap2(1), ...
-
... ds.height-widthSlider)).value_(0.5); zoomSlider.action = {zoom=zoomSlider.value.linlin(0,1,minZoom,maxZoom); this.refresh;}; xTranslateSlider = Slider(this,Rect(widthSlider, argBounds.height-widthSlider, argBounds.width-(2*widthSlider), wid ...
-
... ue = ((point - Delay1.kr( point )) * ControlRate.ir).asPoint.rho; value = value.linlin( *fromRange ++ [-1,1, \none ] ); value = Select.kr( clipMode, [ value.softclip2(1, clipSoftness ), value.softfold2(1, clipSoftness ), value.wrap2(1), val ...
-
... ].do({ |item,i| out = if( item < out[0], [ item, i+1 ], out ); }); out = out[1].linlin(0, n-1, *range ++ [ \none ]); UMapOut.kr( out ); }, { |unit, vals = #[0.5], nearestTo = 0.5, range = #[0.0,1.0] | vals.collect(_.absdif( nearestTo )) .mi ...