Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2366) Code (121) Doc (629) Help (191) Quark (1309) Plugin (116) SCDoc ↗ Forum ↗ Google ↗
  1. WFSRectView Quark

    ... ill; }; }); }); } getPoints { ^object.corners ++ [ object.center ]; } getNearestIndex { |point, scaler| // returns nil if outside radius var radius; radius = scaler.asArray.mean * 5; ^this.getPoints.detectIndex({ |pt, i| pt.asPoint.dist( po ...

  2. ParaSpace Quark

    ... des.removeAt(nodenr)}); if(refresh == true, {this.refresh}); } setNodeLoc_ {arg index, argX, argY, refresh=true; // var x, y; // x = argX+bounds.left; // y = argY+bounds.top; paraNodes[index].setLoc_(Point(argX+0.5, argY+0.5)); if(refresh = ...

  3. extDict Quark

    ... t(otherKeys, value); } } + SequenceableCollection { // unified method for Array/index, Array of assocs and dicts valuesKeysDo { |func| if (this.isAssociationArray) { this.do { |assoc, i| func.value(assoc.value, assoc.key, i); }; }; this.do( ...

  4. Wavesets2 Quark

    ... fer.sampleRate; ^[startFrame, length, length/buffer.sampleRate] } maximumAmp { |index, length=1| var maxItem = 0; if(length == 1) { ^amps[index] ? 0.0 }; length.do { |i| maxItem = max(maxItem, amps[index + i] ? 0.0) }; ^maxItem } // backwar ...

  5. linear Quark

    ... ut, UAdaptSpec({ |sp| sp.copy.warp_( \lin ) }) ) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .canUseUMapFunc_({ |unit, key, umapdef| var spec; ...

  6. linear Quark

    ... ut, UAdaptSpec({ |sp| sp.copy.warp_( \lin ) }) ) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .canUseUMapFunc_({ |unit, key, umapdef| var spec; ...

  7. TabbedView2 Quark

    ... e defaults ***/ focusFrameColor=Color.clear; font=Font.default; archiveKeys = [\indexes,\followEdges,\tabPosition,\tabFocus]; swingFactor = Point(0.52146, 1.25); stringFocusedColors=[Color.white] ; stringColors=[Color.black] ; labelColors = ...

  8. synthDefAutogui Quark

    ... il){synthDef.allControlNames}{synthDesc.controlNames}; ctrlNames.do({ arg item, index ; var name = item.name.asString ; var defVal = if(synthDef.notNil){synthDef.controls[index]}{item.defaultValue} ; var ctrl ; if (specs[name.asSymbol].isNi ...

  9. KeyBus Quark

    KeyBus { var <keys, <values, <bus; var indexDict; // for KeyBus with (freq: [200, 300, 400], amp: [3,2,1]); var <isPoly, <isMono; *new { |keys, values, server| ^super.newCopyArgs(keys).init(values ? [], server); } argNames { ^keys } // temp ...

  10. add Quark

    ... ec.maxval] ); } ) .mappedArgs_([ \input, \add ]) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .setSpec( \factor, [-1,1,\lin,0,0].asSpec ) .setS ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow