Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... .if({ // 12.midiratio has rounding error, should be 2, is 1.999etc num = tuning.pop; (num == 12).if ({ // octave octaveRatio = 2; }, { octaveRatio = ratios.pop; }); }, { octaveRatio=2 }); } scale { /*@ desc: Generates a Scale which contains ...

  2. SortedRand Quark

    ... ues.pow(spread).integrate; values = values / (values.last); // normalize values.pop; // remove last item ^spec.map( values ); } } Scramble { // scramble an array // if trig == 1, scrambling will be performed once at init // trig can not be ...

  3. SCLOrkClockServer Quark

    ... s( Main.elapsedTime, 0.0); }}, { var currentState = cohortState.at(\stateQueue).pop; cohortState.put(\current, currentState); }); } prSendState { | cohortState, wire | var msg = cohortState.at(\current).toMessage; msg[0] = '/clockUpdate'; w ...

  4. 072-lsystem_grow_discrete Quark

    ... h, theta, noise| stack.add(List.new); nil; }, $]: {|length, theta, noise| stack.pop.reverseDo{|revert| revert.value; }; nil; }, $|: {|length, theta, noise| Pen.line(Point(0, 0), Point(0, length)); Pen.stroke; Pen.translate(0, length); {Pen. ...

  5. MIDISliderWindow Quark

    ... nDict[i].value(i, val, *history[i]); this.midiRecorderAdd( i, val ); history[i].pop; history[i].insert(0,val); }; midiSliders = Array.fill(nC, { |i| SCStaticText(window, Rect(20 + (i*40), windowH - 28, 30, 20)) .string_(i + 1).align_(\cente ...

  6. sKeyboard Quark

    ... elocitiesText; var stringToFloats; //--gui var minNumber, maxNumber; var presetsPop; var clearButton; var usrView; var midiNotesText, midiVelocitiesText; var midiSendPop, midiSendBut; var win= Window("sKeyboard", winRect); win.layout= VLayo ...

  7. SpaceMap Quark

    ... / 8.asAscii in Qt?? if (key == 127.asAscii) { "delete last line.".postln; lines.pop } } } checkUpdate { } }

  8. SpaceMap Quark

    ... / 8.asAscii in Qt?? if (key == 127.asAscii) { "delete last line.".postln; lines.pop } } } checkUpdate { } }

  9. 5_drawer Quark

    ... ringCenteredIn( lastLine, uv.bounds, Font("Monaco", 24), Color.grey(0.7) ); Pen.pop; }); // make draw window: Butz.add(\DRAW, { WinBounds.showOrMake(\DRAW) }); WinBounds.addMake(\DRAW, { // make a window ... q.draw.win = Window("DRAW", WinB ...

  10. Key Quark

    ... tic.isNil), // if no argument, then... { if(changes.size>0, {this.root_(changes.pop.neg)}, //... return to the previous key {"already in original key!".error} ); }, { newRoot = chromatic; newRoot.isNil.if({ newRoot = scale.degrees.wrapAt(de ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow