Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... applies a 2D transformation matrix to a single Vector2D transformVector2Ds{arg vPoint; var tempX, tempY; tempX = (matrix[0,0] * vPoint.x) + (matrix[1,0] * vPoint.y) + (matrix[2,0]); tempY = (matrix[0,1] * vPoint.x) + (matrix[1,1] * vPoint.y ...

  2. GMXYUserView Quark

    ... X, mousePosY, xMaxIndex, yMaxIndex, xInvert = false, yInvert = true| var case = Point( this.getXIndex(mousePosX, xMaxIndex, xInvert), this.getYIndex(mousePosY, yMaxIndex, yInvert) ); ^case } //////////////////// // GRAPHICS // ///////////// ...

  3. gui_example_mindmirror Quark

    ... e; }; CmdPeriod.doOnce({ mindSynth= nil; win.close; }); win.drawFunc= { var bandPoints; var width2= win.bounds.width*0.5; var height= win.bounds.height; var hh= height/15; var verticalGap= hh*0.2; var barHeight= hh-verticalGap; var horizont ...

  4. SSWorldView Quark

    ... ; var drawFunc; var <>textScale=10; var <>writeText=true; var <>f=0.75; //focal point for perspective drawing *new{ |ssWorld| ^super.new.init(ssWorld); } init { |ssWorld| world=ssWorld; // drawFunc } draw { // return a function to be evalua ...

  5. VectorSplineGui Quark

    ... var domainSpec,fromX,toX; guiBody { arg parent,bounds; domainSpec = [0.0,model.points.maxValue(_.at(0))].asSpec; fromX = domainSpec.minval; toX = domainSpec.maxval; this.makeSplineGuis; this.focused = focused; } focused_ { arg di; var sg; ...

  6. GMColorPicker Quark

    ... ] = cmax; color = aColor; { this.refresh; }.defer; } draw { var saturationHelperPoint; super.drawFrame; this.prDrawColorHelper; this.prDrawSVGradient; this.prDrawHuePicker; this.prDrawHueHelper; this.prDrawSaturationHelper; if(thisDisplayAl ...

  7. XiiChannelMeter Quark

    ... var updateFreq = 10, dBLow = -80; var numRMSSamps, numRMSSampsRecip; var name, point; name = "- level meter -"; point = if(setting.isNil, {XiiWindowLocation.new(name)}, {setting[1]}); numIns = 2; numOuts = XQ.pref.numberOfChannels; viewWid ...

  8. ScaledUserView Quark

    ... ) the newScaleArray can be an Array , but also a number (for both H and V) or a Point b.scale = [0.75, 0.5 ]; b.scale = 1.5@1; b.scale = 1; b.move = 0.5; // back to normal reset resets scale and move to defaults. clip sets and gets clipping ...

  9. WFSV2 Quark

    ... , String.scDir ); UChain.makeDefaultFunc = { UChain( \bufSoundFile, [ \wfsStaticPoint, [ \point, (5@0).rotate(2pi.rand) ] ] ).useSndFileDur }; UChain.presetManager .putRaw( \dynamicPoint, { UChain( [ \bufSoundFile, [ \soundFile, BufSndFile. ...

  10. generating scores Quark

    ... n_(0.1*dur); evt.units[0].set(\freq,100*rrand(1,10).postln ); evt.units[1].set(\point, rrand(-5.0,5.0)@rrand(-5.0,5.0)); evt; }); x = UScore(*f).cleanOverlaps; // put them in a score, cleanup overlapping tracks x.gui; ) //short ( f = 120.co ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow