Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (266) Code (32) Doc (61) Help (23) Quark (150) SCDoc ↗ Forum ↗ Google ↗
  1. OssiaValues Quark

    ... 'free' } *clip { ^'clip' } *low { ^'low' } *high { ^'high' } *wrap { ^'wrap' } *fold { ^'fold' } }

  2. tri Quark

    ... ).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 ...

  3. 070-lsystem Quark

    ... 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 ...

  4. midi Quark

    ... 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 ...

  5. CHANGELOG Quark

    ... .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 ...

  6. p_line Quark

    ... ; 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 ...

  7. p_line_point Quark

    ... .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; } ...

  8. PanOut Quark

    ... 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 ...

  9. smooth Quark

    ... ntrolSpec( 0, 1, \lin, 0.0, 0.3 ) ) .setSpec( \mode, ListSpec( [ \clip, \wrap, \fold ] ) ) .useSelection_( false );

  10. p_brown Quark

    ... 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' );

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow