Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1875) Code (155) Doc (456) Help (116) Quark (1142) Plugin (6) SCDoc ↗ Forum ↗ Google ↗
  1. Boids2D Quark

    ... oidList.collect{|boid| boid.getPanVals; // get the pan values }; } // creates a rectangle of size [dim] bounds_ {|dim| var rect, xLen, yLen; if(dim.isArray) { if(dim.size==2) { xLen = dim[0]; yLen = dim[1]; }; } { "dim must be a two element ...

  2. RedMixerChannelGUI Quark

    ... nds(RedFont.new).width; tmp2= str.bounds(RedFont.new).width+2; textView.bounds= Rect( textView.bounds.left-(tmp2-tmp/4), textView.bounds.top, tmp2, textView.bounds.height ); textView.string= str; }); } close { insertWins.do{|x| if(x.notNil, ...

  3. ServerOptionsGui Quark

    ... efault; if (parentArg.isNil, { parent = Window("Server Options").front.bounds_( Rect( Window.screenBounds.width / 2 - (width / 2), Window.screenBounds.height / 2 - (height / 2), width, height ) ); standalone = true; }, { parent = parentArg ...

  4. InstrGateSpawner Quark

    ... }, gui: { arg layout; var l; l = layout ?? {PageLayout(~igs.instr.dotNotation, Rect(0, 0, 500, 600))}; ~igs.gui(l); if(layout.isNil, { l.resizeToFit }) } ));

  5. p_randomwalk_point Quark

    ... eIsMapped_( false ) .numChannels_( 2 ) .setSpec( \value, DisplaySpec( PointSpec(Rect(0,0,1,1)), { |point| "% @ %".format(point.x, point.y ) }) ) .setDefault( \value, 0.0@0.0 ) .setDefault( \center, 0.0@0.0 ) .setDefault( \radius, 10@10 ) .s ...

  6. derived-elements-mfunc Quark

    ... .action_(MFunc()); ) // make a Slider2D to set x and y from gui ( Slider2D(nil, Rect(0,0,200,200)).action_({ |sl2d| x.valueAction_(sl2d.x); y.valueAction_(sl2d.y); }).front; ) ( // add logging to x and y x.action.add(\post, { |el| [el.name, ...

  7. ExtraWindows Quark

    ... (0.cylBesselI(pi*a)); } }, \lanczos : { |a| { |x| ((2*x - 1)*pi).sincPi; } }, \rect : { |a| { 1; } }, \tukey : { |a| { |x| if(x < (a/2), { 0.5*(1 + ((2*x/a) - 1 ).cosPi); }, if(x > (1 - (a/2)), { 0.5*(1 + ((2*x/a) - (2/a) + 1).cosPi); }, { ...

  8. remapping Quark

    ... string_(st) }; q.button = Button().states_([[0],[1]]); q.window = Window(bounds:Rect(200,200,200,100)).layout_( VLayout( HLayout( *q.knobs ), HLayout( *q.numboxes ), HLayout( *q.texts ), q.button ) ).front; q.synths = [ { |freq=400| Pan2.ar ...

  9. InstrBuilder Quark

    ... Builder" }) }, gui: { arg layout; var l; l = layout ?? {PageLayout(~name.value, Rect(0, 0, 500, 600))}; ActionButton(l, "EDIT" + (~name.value), { ~source.gui }.inEnvir); ~patch.inputs.do { arg inp, i; ArgNameLabel( ~patch.argNameAt(i), l.st ...

  10. MixingBoard Quark

    ... in.gap.y; if(w.isClosed.not) { { isNew.if({ // if new, assign origin w.bounds = Rect.new(5, 5, hSize + (2*skin.gap.x), vSize+20); }, { // if old, keep existing origin w.bounds = Rect.new(w.bounds.left, w.bounds.top, hSize + (2*skin.gap.x), ...

prev 91 92 93 94 95 96 97 98 99 100 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow