Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... def( \testSynth ).set( \t_trig, 1, \amp, el.value ) }; //// mapping ranges: /// linlin: Ndef( \testSynth, { arg freq=440, ampin=64, t_trig=1, dur=1; SinOsc.ar( freq, 0, ampin.linlin( 0, 1, 0, 0.8 ) ) * EnvGen.kr( Env.perc, t_trig, timeScale ...

  2. ScaledUserView Quark

    ... ; bnds = this.drawBounds.extent.asArray.neg; ^this.move.collect({ |item,i| item.linlin( 0.5,1.5,0, bnds[i] * (this.scale[i] - 1), \none); }); } movePixels_ { |newPixelsArray, limit, refreshFlag| var bnds; limit = limit ? true; newPixelsArra ...

  3. line_rel Quark

    ... Select.kr( curve.inRange(-0.001,0.001), [ sig.lincurve(0,1, a, b, curve ), sig.linlin(0,1, a, b ) ]); UMapOut.kr(sig); }) .setSpec( \curve, [-16,16,\lin,0,0].asSpec ) .setSpec( \timeScale, [0.25,4,\exp,0,1].asSpec, \init ) .uchainInitFunc_ ...

  4. maingui_loadtests Quark

    ... // "move mode vis".postln; star = g.main.movevals.collect { |val, i| Polar(val.linlin( 0, 1, 40, 240), i / 9 * 2pi).asPoint + center; }; // star.postln; Pen.color = Color.yellow; Pen.width = 3; star.wrapExtend(10).doAdjacentPairs { |p1, p2 ...

  5. line_rel Quark

    ... Select.kr( curve.inRange(-0.001,0.001), [ sig.lincurve(0,1, a, b, curve ), sig.linlin(0,1, a, b ) ]); UMapOut.kr(sig); }) .setSpec( \curve, [-16,16,\lin,0,0].asSpec ) .setSpec( \timeScale, [0.25,4,\exp,0,1].asSpec, \init ) .uchainInitFunc_ ...

  6. SGME_RandomGenerator Quark

    ... inMin: -5, inMax: 5, outMin: 1/1000, outMax: 1, ) } convertVoltage {|vol| ^vol.linlin( inMin: 0, inMax: 10, outMin: 0, outMax: 1, ) } convertKey {|k| ^k.linlin( inMin: -5, inMax: 5, outMin: -1, outMax: 1, ) } // Setters de los parámetros s ...

  7. GMFaderSlider Quark

    ... me(super.backgroundColor); if(super.polarity == \uni) { thisAlpha = super.value.linlin( super.min, super.max, thisMinAlpha, 1 ); } { if(super.value.abs == super.min) { thisAlpha = thisMinAlpha; } { if(super.value.abs == super.max) { thisAlp ...

  8. extPoint-variousOps Quark

    ... rap, lo, hi ) } fold { arg lo, hi; ^this.binaryPerformOnEach( \fold, lo, hi ) } linlin { arg inMin = 0, inMax = 1, outMin = 0, outMax = 1, clip=\minmax; ^this.binaryPerformOnEach( \linlin, inMin, inMax, outMin, outMax, clip) } linexp { arg ...

  9. sndBuffer Quark

    ... PlayBuf.ar(1, bufnum, rate: BufRateScale.kr(bufnum) * rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(bufnum)), loop: loop); sig = BLowPass.ar(sig * envGen * amp, Lag.kr(lpassFq, 0.02)); sig; };

  10. midi_note_gate Quark

    ... \toRange ); curve = unit.get( \curve ); if (abs(curve) < 0.001) { value = value.linlin( *fromRange ++ [ -1, 1, \none ] ); } { value = value.lincurve( *fromRange ++ [ -1, 1, unit.get( \curve ), \none ] ); }; if( unit.get( \invert ).booleanVa ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow