Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    LinLin map a linear range to another linear range LinLin.ar(in, srclo, srchi, dstlo, dsthi) LinLin.kr(in, srclo, srchi, dstlo, dsthi) in - input to convert. srclo - lower limit of input range. srchi - upper limit of input range. dstlo - low ...

  2. UGen Help

    ... ut and the Nyquist frequency is output. This can be useful to prevent aliasing. linlin(inMin, inMax, outMin, outMax, clip) Wraps the receiver so that a linear inputrange is mapped to a linear output range. The clip argument can be one of th ...

  3. SCUserViewTutorial Help

    ... action ([256, 0].includes(modifiers)).if{ // restrict to no modifier newVal= x.linlin(0,this.bounds.width,0,1); // translates the relative mouse position in pixels to a value between 0 and 1 if (newVal != value) {this.valueAction_(newVal)} ...

  4. SpecFlatness Help

    ... tness .kr(chain); flatdb = 10 * flat.log; // Convert to decibels flatdbsquish = LinLin .kr(flatdb, -45, -1.6, 0, 1).max(-10); // Rescale db roughly to 0...1. flat.poll(10, "flatness: " ); flatdb.poll(10, "flatness (db): " ); Out .kr(0, [fla ...

  5. UGens Help

    ... Formlet FOS HPF HPZ1 HPZ2 Integrator Klank Lag Lag2 Lag3 LeakDC Limiter LinExp LinLin LPF LPZ1 LPZ2 Median Normalizer OnePole OneZero Resonz RHPF Ringz RLPF SOS TwoPole TwoZero Noise LFNoise1 LFNoise2 LFNoise0 LFClipNoise WhiteNoise GrayNo ...

  6. Spring Help

    ... ,m2], 0.4 * k, d); m4 = Spring .ar(m3 - m1 + m2, 0.1 * k, d); CombL .ar(t, 0.1, LinLin .ar(m4, -10, 10, 1/8000, 1/100), 12) }.play; )

  7. Pnaryop Help

    ... patterns (or compatible pattern inputs) examples of n-ary operators are: blend, linlin, linexp, explin, expexp, clip, fold, wrap. See also: Pbinop , Punop , NAryOpFunction // example ( var a; a = Pnaryop ( \wrap , Pseries (0, 1, 12), [3, 7] ...

  8. SCLevelIndicator Help

    ... Cresponder (s.addr, '/levels' , { arg time, resp, msg; { a.value = msg[3].ampdb.linlin(-40, 0, 0, 1); a.peakLevel = msg[4].ampdb.linlin(-40, 0, 0, 1); }.defer; }).add; w.onClose = {o.remove; x.free}; ) // styles 0 and 2 support warning and ...

  9. Phasor Help

    ... .ar(rate); sr = SampleRate .ir; x = Phasor .ar(trig, rate / sr); SinOsc .ar( [ LinLin .kr(x, 0, 1, 600, 1000), // convert range from 0..1 to 600..1000 1000 // constant second frequency ], 0, 0.2) }.play; ) // two phasors control two sine f ...

  10. Complex Help

    ... var z = field[x][y]; z = f.(z); field[x][y] = z; Pen .color = Color .gray(z.rho.linlin(-100, 100, 1, 0)); Pen .addRect( Rect (x * dx, y * dy, dx, dy) ); Pen .fill } } }; fork({ 6.do { w.refresh; 2.wait } }, AppClock ) )

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow