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. 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)

  4. 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)) ...

  5. 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; } }

  6. 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; } }

  7. 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) ...

  8. EnvView Quark

    ... .collect({ |level, i| Point( (env.times[..i-1].sum / dur) * bounds.width, level.linlin( min, max, bounds.height, 0 ) ) }); } setPoints { |pts, bounds| var dur, levels, times; dur = env.times.sum; pts = pts.sort({ |a,b| a.x <= b.x }); #times ...

  9. tilt Quark

    ... t( \tilt ) * 0.5pi).tan / 2); size = obj.size; obj.collect({ |item, i| item + i.linlin(0,size-1,tiltAmt.neg, tiltAmt) }); }, [ \tilt, 0] ) .setSpec( \tilt, [-1,1,\lin,0,0].asSpec );

  10. GMZZSlider Quark

    ... min; if(thisPolarity == \uni) { if(thisOrientation == \horizontal) { value = x.linlin( super.interactionRect.left, super.interactionRect.right, 0, (nDiv - 1) ); } { value = y.linlin( super.interactionRect.top, super.interactionRect.bottom, ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow