Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (337) Code (37) Doc (64) Help (26) Quark (207) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. SortedNList Quark

    ... add if better than last element, if (function.value(item, array.last)) { array.pop; ^super.add(item); }; // else do nothing, i.e. just drop item } // always add them one by one to maintain maxSize addAll { |aColl| aColl.do { |elem| this.ad ...

  2. openbci_gui_accelerometer Quark

    ... rd var buffer= DataBuffer(board, 100, false, true).start; var fps= 60; var usr, pop1, pop2, pw, po; var img, imgFunc; var verticalScale, horizontalScale; var f0= Font("Helvetiva", 16); var f1= Font("Helvetiva", 14); var f2= Font("Helvetiva" ...

  3. MIDISyncClock Quark

    ... orm the action, and check if it should be rescheduled (nextTime = (task = queue.pop).value(beats)).isNumber.if({ this.sched(nextTime, task, -1) }); }); }, // start -- scheduler should be clear first 10 -> { |data| startTime = lastTickTime = ...

  4. AnalyseEventsDatabase Quark

    ... at are older than some fixed time in the past removeold {arg check; //var test, popped; var firstsafe; //remove if older than check //Post << "remove" << check << nl; //test=true; // while {test && (list.notEmpty)} { // // popped=list.pop; ...

  5. MIDIKtl_howTo Quark

    ... lider can optionally be a volume control if (lastIsVol) { lastKey = elementKeys.pop; indices.pop; // use last slider for proxy volume this .mapCC(lastKey, { |ccval| var lastVal = lastVals[lastKey]; var mappedVol = \amp .asSpec.map( this .no ...

  6. StickView Quark

    ... tRho*headRadius*0.05), headRadius-(rho.min(1)*headRadius*0.4)) ); Pen.fill; Pen.pop; Pen.pop; }; uview.refresh; } refresh { uview.refresh; } }

  7. StickView Quark

    ... tRho*headRadius*0.05), headRadius-(rho.min(1)*headRadius*0.4)) ); Pen.fill; Pen.pop; Pen.pop; }; uview.refresh; } refresh { uview.refresh; } }

  8. VGScale Quark

    ... ,800)) .background_(Color.grey(0.1)); comp.decorator = FlowLayout(comp.bounds); PopUpMenu(comp, Rect(4, 4, 72, 30)) .items_([\pelog, \slendro]) .background_(Color.grey) .action_{ |pop| this.scale_(pop.items[pop.value]).refresh }; comp.decor ...

  9. MIDISyncClock Quark

    ... } } { // perform the action, and check if it should be rescheduled task = queue.pop; thisThread.clock = this; protect { // I had tried to "fake" the correct beat: // from the task's perspective, lastBeat should be (qt - schedOffset) / ticks ...

  10. Progression Quark

    ... neral"), \gralAlt -> Progression.new(degrees: [0,3,1,4], name: "General Alt"), \pop -> Progression.new(degrees: [0,4,5,3], name: "Pop"), \unresolved -> Progression.new(degrees: [3,0,3,4], name: "Unresolved"), \blues -> Progression.new(degre ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow