Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1772) Code (147) Doc (407) Help (75) Quark (1139) Plugin (4) SCDoc ↗ Forum ↗ Google ↗
  1. 174-springs_interconnected Quark

    ... Synth(\imp)}.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.quadCurveTo(spr.target.loc.asPoint, w.mouse.asPoint); P ...

  2. The Beasties by henklass (henklass) Code

    ... z=7; w=Window("beasties", Rect(400, 150, z*maxX, z*maxY)); w.view.background_(Color.white); w.front; //strewing food, 10 bytes per cycle strew={ var x, y; for(1, 10, { x=maxX.rand; y=maxY.rand; ~food[x,y]=~food[x,y]+1; ...

  3. 2b_makeHistoryGUI Quark

    ... ect { |list, i| Button(g.parent, Rect(0,0,150,25)) .states_([ list[0] ++ [ nil, Color.grey (0.9) ], list[1] ++ [ nil, Color.green(0.9) ] ]) .action_(list[2]) }; // watch for state changes q.histSkip.stop.free; q.histSkip = SkipJack(MFdef(\u ...

  4. SCLOrkSamples Quark

    ... ); alphabeticalSamples.do({ |key| Button(browseWindow, 100@25) .states_([ [key, Color.black, Color.white], [key, Color.white, Color.black] ]) .action_({ arg button; if(button.value==1, { var buffer, channels; buffer = dict.at(key); channels ...

  5. SCDragSink Help

    ... t= View .currentDrag.value; i.string= "click here for silence" ; i.background_( Color .red)}; i.mouseDownAction_({i.object.free;i.string= "I evaluate a (sound) function" ;i.background_( Color .clear)}); StaticText (w, Rect (10,200,380,50)) ...

  6. A Simple Synthesizer Keyboard 1 by pyoungryangko (prko) Code

    ... |parent, label| Button(parent, 30@30) .states_([ [label], [label, Color.white, Color.grey] ]) .mouseDownAction_{ lastPressed = label; ctl.(label, 1); bs[label].value = 1 } .action_{ ctl.(label, 0); ...

  7. 018-repulsive_discrete Doc

    ... d,loc,vel,acc,mass,size }; }; //--loop w.draw{ Pen.smoothing_(false); Pen.strokeColor= Color.green; rep.loc= w.mouse/[wn, hn]; Pen.strokeRect(Rect.aboutPoint(rep.loc.round.asPoint*[wn, hn], pixelSize, pixelSize)); world.objects.do{|o| o.add ...

  8. 018-repulsive_discrete Quark

    ... d,loc,vel,acc,mass,size }; }; //--loop w.draw{ Pen.smoothing_(false); Pen.strokeColor= Color.green; rep.loc= w.mouse/[wn, hn]; Pen.strokeRect(Rect.aboutPoint(rep.loc.round.asPoint*[wn, hn], pixelSize, pixelSize)); world.objects.do{|o| o.add ...

  9. startup_example_customize Quark

    ... t(Window.screenBounds.width - 400, 2, 400, 300)); Document.listener.background_(Color.blue(0.2, 0.9)); // and color it. // .alwaysOnTop_(true); Document.listener.stringColor_(Color(1, 0.62, 0)); Document.postColor_(Document.listener.stringC ...

  10. BusMonitor Quark

    ... abelWidth: 25, numberWidth: 30 ); Button.new(w,Rect(0,0,20,20)).states_( [[">", Color.blue],["[]", Color.red]]).action_({ |but| but.value.postln; if ( but.value == 1){ this.start }{ this.stop} } ); } } BusHistoMonitor : BusMonitor{ var <>hi ...

prev 111 112 113 114 115 116 117 118 119 120 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow