Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (883) Code (145) Doc (91) Help (17) Quark (625) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. PG_Cookbook03_External_Control Help

    ... vent. ( ~legato = 1; c = CCResponder ({ |src, chan, num, value| ~legato = value.linlin(0, 127, 0.1, 2.5) }, num: 1); // num: 1 means modwheel ) ( p = Pbind ( \degree , Pwhite (-7, 12, inf ), \dur , Pwrand ([0.25, Pn (0.125, 2)], #[0.8, 0.2] ...

  2. SimpleNumber Help

    ... s.plot; ((0..10) / 10).collect { |num| num.quantize(1, 1.0, 0.5) }.postcs.plot; linlin(inMin, inMax, outMin, outMax, clip) map the receiver from an assumed linear input range (inMin..inMax) to a linear output range (outMin..outMax). If the ...

  3. AbstractFunction Help

    ... nd the other operands as arguments. See NAryOpFunction clip, wrap, fold, blend, linlin, linexp, explin, expexp applyTo(... args) Interface that allows us to combine selectors ( Symbol s) and Function s. Sends valueArray (args) to this . // ...

  4. Shaper Help

    ... function, create the data at 1/2 buffer size + 1 t = Signal .fill(513, { |i| i.linlin(0.0, 512.0, -1.0, 1.0) }); // linear function t.plot // t.asWavetable will convert it to the official Wavetable format at twice the size b.sendCollection ...

  5. LFGauss Help

    ... (-2.0 * squared(width)))); var gauss = LFGauss .ar(0.1, width, loop: 1); gauss.linlin(min, 1, 0, 1); }.plot(1) ); // range does the same implicitly ( { var width = XLine .kr(0.04, 1.0, 1); LFGauss .ar(0.1, width, loop: 1).range(0, 1); }.pl ...

  6. PG_05_Math_on_Patterns Help

    ... al, etc.), binary (+, -, *, /, **, min, max, etc.) and n-ary (clip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite (1, 5, inf ).asStream.nextN(10); // Random integers 1-5, multiplied ...

  7. GUI-Overview Help

    ... ; //m.postln; ([256, 0].includes(m)).if{ // restrict to no modifier value = (x).linlin(0,v.bounds.width,0,1); v.doAction}; }; v.mouseMoveAction = v.mouseDownAction; // (5) (optional) define key actions v.keyDownAction = { arg view, char, mo ...

prev 1 2

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow