Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. UserViewHolder Quark

    ... by * holding a UserView internally. This view is created upon instantiation * depending on the current GUI scheme. * * Any unknown calls are automatically forwarded to it, and event hooks are * patched to consistently provide the base view ...

  2. Turtle Quark

    ... urtle implementation. t = Turtle .new ( t.init; t.to(100@100); t.turn(0.5pi); t.penDown; t.forward(100); t.penUp; t.turn(-0.5pi); t.forward(100); t.penDown; t.forward(100); ) w = SCWindow .new.front ( w.drawHook = { Pen .use { t.stroke; Col ...

  3. MasterEQ Quark

    ... bounds.width )) @ (array[1].linlin(range.neg,range,bounds.height,0,\none)); }); Pen.color_( Color.white.alpha_(0.25) ); Pen.roundedRect( bounds, [6,6,0,0] ).fill; Pen.color = Color.gray(0.2).alpha_(0.5); //Pen.strokeRect( bounds.insetBy(-1, ...

  4. FoaXformDisplay Quark

    ... soundfield player - for auditioning the soundfield transforms var <audition, >iOpenedAudition = true, <pwPlaying = false, <pwAzim = 0; *new { | numDisplayPoints = 12 | ^super.newCopyArgs(numDisplayPoints).prInit; } prInit { var directions; ...

  5. Graphic illustration of granular time-stretching by 0-7r (jamshark70) Code

    ... , ratioSl, d, indexSl; var viewWidth = 500; var buf, synth; f = SoundFile.openRead(p); f.seek(86965); f.readData(d = Signal.newClear((f.sampleRate * 0.333).roundUp)); f.close; w = Window("granular windows", Rect(800, 200, viewWid ...

  6. 175-springs_interconnected2 Doc

    ... |x| x.notNil}; }.flat; syns= {Synth(\imp2)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.strokeColor= Color.white; sprs.do{|spr| spr.update; //--render springs Pen.moveTo(spr.object.loc.asPoint); Pen.lineTo(spr.target.loc.as ...

  7. 175-springs_interconnected2 Quark

    ... |x| x.notNil}; }.flat; syns= {Synth(\imp2)}.dup(n); //--loop w.draw{ //--render Pen.smoothing= true; Pen.strokeColor= Color.white; sprs.do{|spr| spr.update; //--render springs Pen.moveTo(spr.object.loc.asPoint); Pen.lineTo(spr.target.loc.as ...

  8. Object Quark

    ... ource.gui(layout ?? {Window(~name.value, bounds).front}, bounds) }, draw: { arg pen, bounds, style; pen.color = style['fontColor']; pen.font = style['font']; if(style['center'], { pen.stringCenteredIn(~name.value, bounds) }, { pen.stringLef ...

  9. EaseGallery Quark

    ... i| i/(boxWidth-1)}); var argStr= "("++"".ccatList(arguments).copyToEnd(2)++")"; Pen.use{ Pen.translate(pos.x, pos.y); Pen.fillColor= Color.white; //box background colour Pen.fillRect(rect); Pen.strokeColor= Color.black; //box border colour ...

  10. 131-obstacle_rocks Doc

    ... Rock(world, RedVector2D[width.rand, height].rand)}.dup(rocks); //--loop w.draw{ Pen.width= 1; world.objects.do{|o, i| //iterate all objects in this world o.addForce(o.world.gravity); //add gravity world.objects.copyToEnd(i+1).do{|oo| o.coll ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow