Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (928) Code (86) Doc (150) Help (40) Quark (649) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. clip_scale Quark

    /* \clip_scale Creates an UMap for scaling a value to another range, with clipping and wrapping functionality. input: the value upon which the scaling is applied (this can be another UMap as well) fromRange: the used range of the input valu ...

  2. clip_scale Quark

    /* \clip_scale Creates an UMap for scaling a value to another range, with clipping and wrapping functionality. input: the value upon which the scaling is applied (this can be another UMap as well) fromRange: the used range of the input valu ...

  3. Core_04 Quark

    ... ks.do { |tr| tr[\points] = tr[\points].collect { |pt| [(pt[0] / dur.max(0.001)).clip(0.0, 1.0), pt[1], pt[2], pt[3]] }; }; ("SPEAR frame txt import parsed: partials=" ++ partialsCount ++ " frames=" ++ frameCount ++ " dur=" ++ dur).postln; r ...

  4. extUnibi Quark

    ... range bending + SimpleNumber { unibi { |noise = 0.0| ^(this + noise.bilinrand).clip(0,1) * 2 - 1 } biuni { |noise = 0.0| ^(this + 1 * 0.5 + noise.bilinrand).clip(0,1) } bipow { |exp = 1| ^this.abs ** exp * this.sign } } + Collection { unib ...

  5. IntegerClip Quark

    /* clip to an integer range and ensure integer type */ IntegerClip { var <minval,<maxval, <default; *new { |minval, maxval, default| ^super.newCopyArgs( minval,maxval,default ).init; } init { if ( default.isNil ){ default = minval }; } map ...

  6. point_angle Quark

    ... range will be mapped invert: (boolean) if true the angle range will be inverted clipMode: when the angle is outside the fromRange, the clipMode decides what happens. The angle is "unwrapped" internally, so if the point would for example spi ...

  7. point_speed Quark

    ... be calculated toRange: the value range to which the speed range will be mapped clipMode: when the speed is outside the fromRange, the clipMode decides what happens 0 - 'clip' (default): clip inside the value range 1 - 'fold': fold/mirror i ...

  8. point_direction Quark

    ... range will be mapped invert: (boolean) if true the angle range will be inverted clipMode: when the angle is outside the fromRange, the clipMode decides what happens. The angle is "unwrapped" internally, so if the point would for example spi ...

  9. DualNumber Quark

    ... = thisIsMin * (this.dual - other.dual) + other.dual; ^this.class.new(r, d) } amclip { |other| ^this * max(other, 0) } scaleneg { |other| ^this * (this.real.sign.linlin(-1, 1, other, 1)) } clip2 { |other| ^max(min(this, other.neg), other) } ...

  10. extRect-asControlInput Quark

    ... top + height; height = height.neg; }; } linlin { |inMin, inMax, outMin, outMax, clip| ^Rect.fromPoints( this.leftTop.linlin( inMin, inMax, outMin, outMax ), this.rightBottom.linlin( inMin, inMax, outMin, outMax ) ); } clip { |rect| var curr ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow