Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... loc.x).neg; // 0 is the floor, and world.dim.z/2 is the ceiling var z=obj.loc.z.linlin(0,world.dim.z,world.dim.z,0); //invert min and max in the view var a,b; var newObj,newObj2; newObj=obj.copy.loc_(Cartesian(x,y,z)); //take care not to ov ...

  2. nanoKONTROL2 Quark

    ... <= (sbutton_note + nk2num - 1)), { sbuttons[scene][cc - sbutton_note].val = val.linlin(0,127,0,1); knobs[scene][cc - sbutton_note].tmpSval = knobs[scene][cc - sbutton_note].prev; faders[scene][cc - sbutton_note].tmpSval = faders[scene][cc - ...

  3. GUI to generate scale- and arpeggio-like fragments in Just Intonation by jordanwhitede (jordanwhitede) Code

    ... ar val = obj.value; // Scale duration, make sure it is not zero val = val.linlin(0.0, 1.0, 2.0, 0.1); ~dur = val; Pdefn(\pDur, ~dur) }); // Slider 1 - change atk sliders[1].action_({|obj| var val = obj.value; val = val.li ...

  4. controller-source Quark

    ... , " ++ val ++ ")").radpostcont.interpret; }.([-60.0, 0.0].asSpec.map(args[0][1].linlin(0, 1, 0, 1.0)) )},'/radtestvol'); == radpostcont == Ndef('track1').set('volume', -30.0)

  5. p_circle_point Quark

    ... f( timeBase.next === \seconds ) { spd = speed.next * clockwise.next.binaryValue.linlin(0,1,-1,1); i = spd * UPattern.startPos; }; loop { ((((((i % 1) * 2pi) + [0, 0.5pi] + startAngle.next).sin * radius.next.asArray) + center.next.asArray)) ...

  6. UI for FM7 by davidmorgan (david_morgan) Code

    ... ( Slider2D().fixedSize_(45).action_({arg ctrl; node.set(\lo_freq, ctrl.x.linlin(0,1,0.1,1000)); node.set(\lo_db, ctrl.y.linlin(0,1,-18,18)); }).x_(100.linlin(0,1000,0,1)).y_(0.linlin(-18,18,0,1)), Slider2D().fixedSize_(45 ...

  7. OSCMapperElement Doc

    ... will transform the received values. // add +20 to all values {|v| v+20} // use linlin to map [0, 1] to [20, 200] linlin(_, 0.0, 1.0, 20.0, 200.0); ⧉ ✔ callback A function which will be called. First argument is the received value. {|v| "re ...

  8. extSimpleNumber-calcCurve Quark

    ... curve value for a ControlSpec or lincurve calcCurve { |min = 0, max = 1| ^(this.linlin(min,max,0,1).max(1e-154).reciprocal-1).squared.log; } }

  9. extSimpleNumber-calcCurve Quark

    ... curve value for a ControlSpec or lincurve calcCurve { |min = 0, max = 1| ^(this.linlin(min,max,0,1).max(1e-154).reciprocal-1).squared.log; } }

  10. SGME_GUIPanel7 Quark

    ... nthiGME.setParameterOSC( string: "/out/" ++ num ++ "/filter", value: knob.value.linlin(0,1,0,10), addrForbidden: \GUI, ) }; pan.action = {|knob| synthiGME.setParameterOSC( string: "/out/" ++ num ++ "/pan", value: knob.value.linlin(0,1,0,10) ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow