Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... find the median index, but if even-sized data we want to // make sure we find a point, so we don't use the average-of-two-centre-points that .median uses medianPos = array.size >> 1; sorted = array.copy; sorted.hoareFind(medianPos, { |a,b| ...

  2. XiiWindowLocation Quark

    ... ^super.new.initXiiWindowLocation(name); } initXiiWindowLocation {arg name; var point; // ARCHIVE CODE - REMEMBER THE WINDOW LOCATION // read position from archive.sctxar // create dictionary if it doesnt exist if ( (Archive.global.at(\win_ ...

  3. JMDrawIcon Quark

    ... et.neg*0.5; penWidth = 1.max(size*0.05); Pen.width=penWidth; square = Rect.aboutPoint(center,size*0.5,size*0.5); Pen.translate(offset2,offset2); Pen.addRect(square.copy.moveBy(offset,offset) ); Pen.stroke; Pen.moveTo(Point(square.right+offs ...

  4. envir_point_set Quark

    /* \envir_point_set ** this Udef can be used in conjunction with 'envir_point_get' and 'p_envir_point_get' UMaps ** The 'envir_point_set' Udef creates a unit that is able to globally share a value with other units used further in the chain, ...

  5. encode_point Quark

    /* \encode_point Encodes a point to an ambisonic soundfield signal. point: the point elevation: elevation amount (-0.5pi - 0.5pi), 0.5pi is straight above, 0 is at horizon dopplerAmt: amount of doppler effect dbRollOff: amount of dB per dis ...

  6. 230-3Dpoint Quark

    //spinning point ( var width= 640, height= 480, w, theta= 0, speed= 0.01, point; w= RedWindow("3Dpoint", Rect(128, 64, width, height)).front; point= Red3DPoint(RedVector3D[0, 0, 0.5]); //--loop w.draw{ theta= theta+speed; point.rotation= Re ...

  7. touchosc example Quark

    ... r', [ 'freq', [ 20, 800 ] ] ], [ 'tremolo', [ 'speed', 5 ] ], [ 'wfsSource', [ 'point', 'lag_point' ] ] ).fadeIn_(1).fadeOut_(1) ).gui; ) UScore.current.enableOSC; // or check the 'OSC' button in the gui // manual controls (more than the to ...

  8. PlotView Quark

    ... lpha_(0.5); borderColor = Color.gray(0.2).alpha_(0.5); } draw { var drawBounds, pointWidth, pointStart, viewHeight, points; Pen.use { drawBounds = this.bounds; if( orientation == \v ) { drawBounds = Rect( drawBounds.top, drawBounds.left, dr ...

  9. XixiPrey Quark

    XixiPrey { var <>point, <>pitch, rect, stageRect; var fillcolor, strokecolor; var rot, predatorArray, preyArray; var xDistance, yDistance, destpoint, move, friction; var posNegX, posNegY; var xAway, yAway; var ateFunc; // what happens when ...

  10. openbci_gui_focuswidget Quark

    ... in.background= Color.white; win.drawFunc= { Pen.color= Color.black; Pen.stringAtPoint("Focus Widget", Point(10, 10), f0); }; win.front; CmdPeriod.doOnce({win.close}); //--plot usr= UserView(win, Rect(*#[0.05, 0.19, 0.9, 0.76]*win.bounds.ext ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow