-
... 'free' } *clip { ^'clip' } *low { ^'low' } *high { ^'high' } *wrap { ^'wrap' } *fold { ^'fold' } }
-
... ).not.binaryValue; n.collect({ |i| (i.linlin(0,n-close,0,2 * periods) + phase).fold(-1,1).linlin(-1,1,*range); }); }, [ \range, [0.0,1.0], \periods, 1, \phase, 0, \close, true ], { |f, obj| [ \range, if( obj.minItem == obj.maxItem ) { [0,1 ...
-
... 5, 20); //length, theta //--loop w.draw{ cnt= cnt+0.3; //speed lplot.theta= cnt.fold(-90, 90); lsys.reset; lsys.next; lsys.next; lsys.next; lsys.next; //--render Pen.strokeColor= Color.white; Pen.translate(width*0.5, height*0.8); lplot.draw ...
-
... gnore values outside fromRange 'clip' (default): clip values outside fromRange 'fold': fold values outside fromRange 'wrap': wrap around values outside fromRange 'none': no clipping applied (values can go outside toRange) clipSoftness: soft ...
-
... .0 1. `floor`, `ceil`, `frac`, `trunc`, `round`, `roundUp`, `mod`, `wrap`, and `fold` now return `Rational` values. 2. Zero denominators, division by zero, reciprocal of zero, and terms that are not numbers now throw `Error`. 3. Use `.asInt ...
-
... ; direction = -1; }, \alternate, { case { current > ttime } { current = current.fold(0.0, ttime); direction = -1; } { current < 0 } { current = current.fold(0.0, ttime); direction = 1; }; }, \back_at_end, { current = current.clip(0.0, ttime ...
-
... .0 ); direction = -1; }, \alternate, { case { current > 1 } { current = current.fold(0.0,1.0); direction = -1; } { current < 0 } { current = current.fold(0.0,1.0); direction = 1; }; }, \off, { current = current.clip(0.0,1.0); } ); }; }.r; } ...
-
... h numbers of outputs ( > 16 ) PanOut { *pan { |in, pos = 0| ^Pan2.ar( in, ( pos.fold(0.0,1.0) - 0.5) * 2.0) } *switchBus { |bus = 0, in, wrap| // in should be 2 channels if( wrap.isNil ) { ^[ Out.ar( bus.round(2), in[0] * (bus >= -1 ).binar ...
-
... ntrolSpec( 0, 1, \lin, 0.0, 0.3 ) ) .setSpec( \mode, ListSpec( [ \clip, \wrap, \fold ] ) ) .useSelection_( false );
-
... llo = lo.next; hhi = hi.next; curr = (curr + (step.next.xrand2 * (hhi - llo))).fold( llo, hhi ); curr.yield; }; }.r; }).mappedArgs_([\lo, \hi ]) .setSpec( \seed, URandSeed ) .setDefault( \seed, URandSeed() ) .category_( 'pattern_random' );