Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1703) Code (71) Doc (521) Help (167) Quark (932) Plugin (12) SCDoc ↗ Forum ↗ Google ↗
  1. UScoreView Quark

    ... onNumber, clickCount| // only drag when one event is selected for now var scaledPoint, shiftDown,altDown; scaledPoint = [ x,y ].asPoint; shiftDown = ModKey( mod ).shift( \only ); altDown = ModKey( mod ).alt( \only ); usessionMouseEventsMana ...

  2. Rotation Quark

    ... var whichfrac, whichfloor; // if 'which' is .kr klicks are heard at the turning points.. // use .arSwitch to avoid this (or use K2A.ar on the 'which' input) whichfrac = which.frac; whichfloor = which.floor; ^(Select.ar(whichfloor%array.size ...

  3. GMRecordButton Quark

    ... or.white); Pen.width_(symbolSize * 0.05); if(thisIsRecording.not) { Pen.addArc( Point( this.bounds.width / 2, this.bounds.height / 2 ), symbolSize / 2, 0, 2pi ) } { Pen.addRect( Rect( (this.bounds.width / 2) - (symbolSize / 2), (this.bounds ...

  4. DOMAttr Quark

    ... --- // parse { arg parentNode, pos, endIndex; // types DOMNode, int, int // pos points on first char of key/value-pair, thus the beginning of the attribute name var xml; var nodeValueRef; // special: init here this.init(parentNode); startIn ...

  5. DeferredView Quark

    ... ponder functions. The easiest way to use it is the SCView:defer shortcut, which points to DeferredView. I'll explain the use of this class with the following set of examples: ( // first we setup a Window with a slider w = Window ().front; w ...

  6. extWinBounds Quark

    ... .moveTo(800.rand, 800.rand)); Window.setAll(~locs, true); Window.getAllCS; */ + Point { flipY { ^x @ (Window.screenBounds - y) } } + Rect { flipY { var flippedTop = Window.screenBounds.height - this.top - this.height; ^Rect( left, flippedTo ...

  7. p_envir_get Quark

    ... / map correctly within range (can be 2-20000 or 20-20000 } { fromSpec.isKindOf( PointSpec ) } { fromSpec = fromSpec.asControlSpec; if( val.isKindOf( Point ) ) { val = val.x }; // use x value } { fromSpec.isKindOf( IntegerSpec ) } { fromSpec ...

  8. extWinBounds Quark

    ... .moveTo(800.rand, 800.rand)); Window.setAll(~locs, true); Window.getAllCS; */ + Point { flipY { ^x @ (Window.screenBounds.height - y) } } + Rect { flipY { var flippedTop = Window.screenBounds.height - this.top - this.height; ^Rect( left, fl ...

  9. sampler Quark

    ... // pitch pchRatio , // offset beatStart * sample.beatsize, 0, sample.end //loop points ) },trig,env3sustain,nil,sample.numChannels) */ },nil,\audio); Instr([\sampler,\looped,\origTempo] ,{ arg sample,trig,env3sustain,pchRatio=1.0,beatStart= ...

  10. RecCutProc Quark

    ... bbcutsynth.setoffset((next.at(1).asFloat)/(rcd.subdiv)); //to minimise floating point errors? //if(block==(offsetlist.size-1),{blocklength=currphraselength- phrasepos;}); this.endBlockAccounting; } }

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow