Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... e .theta_(2pi.rand).angularVel_(0.5.rand); }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o, i| o.addForceAngular2D(world.gravity); //o.addForce(world.gravity); o.update; world.contain(o); //--rende ...

  2. 01_GuidedTour Quark

    ... ber can assume many meanings, depending on what they are used for: frequencies, colors, geometric shapes, anything. // all the math operations here: SimpleNumber.help // Collections, Arrays, Lists, Dictionaries [ 1, 2, 3 ]; [ 1, 2, 3 ].dump ...

  3. SCWindow-asCode_Cocoa Quark

    ... Code { |varName = "w", extraMethods| ^super.asCode(varName, [[\step, 0.0], \knobColor, \action] ++ extraMethods.asCollection) } } + SCSlider { asCode { |varName = "w", extraMethods| ^super.asCode(varName, [[\value, 0.0], [\thumbSize, 12.0] ...

  4. Routine Help

    ... o set the button label update = { |but, string| but.states = [[string.asString, Color .black, Color .red]]; but.refresh; }; b = SCButton (w, Rect (10,10,360,40)); b.font_( Font ( "Impact" , 24)); update.value(b, "there is only one state" ); ...

  5. Re: Load and play samples from GUI (Qt GUI only), adapted to use SoundFile:cue by lfsaw (LFSaw) Code

    ... t; buttons[path] = Button() .states_([[path.basename], [path.basename, Color.red]]) .action_{|me| (me.value == 1).if({ players[path] = samples[path].cue((amp: 1, server: Server.default), true) }, { p ...

  6. sound_gui_example_filters_and_fft Quark

    ... height), false); usr= UserView(win, Rect(0, 0, width, height)); usr.background= Color.black; usr.drawFunc= { Pen.fillColor= Color.white; numBins.do{|i| var freq; if(i%3==0, { freq= (s.sampleRate/bufferSize*i).asInteger; Pen.stringAtPoint(fr ...

  7. 040-pendulum Doc

    ... c,mass,size .theta_(-1).angularVel_(-0.5); }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o| o.addForceAngular2D(world.gravity); //o.addForce(world.gravity); o.update; //world.contain(o); a= o; //-- ...

  8. 040-pendulum Quark

    ... c,mass,size .theta_(-1).angularVel_(-0.5); }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.width= 1; world.objects.do{|o| o.addForceAngular2D(world.gravity); //o.addForce(world.gravity); o.update; //world.contain(o); a= o; //-- ...

  9. PlotPoint Quark

    ... indow, <view, <range = 1, <includeNeg = true, <point; var <pointSize = 5, <pointColor, <lineSize = 1, <lineColor; var <labelFont, <flipped = true; *new { |point| point = point ? Point(1,1); ^super.new.init( point ); } init { |point| window ...

  10. 1e_nUFO_modes Quark

    ... binary] NTMI.nUFO.modes = NTMI.nUFO.modes ? [\full, \touch, \binary]; // switch colors to this dict later NTMI.nUFO.modeColDict = ( full: [ 1, 1, 0 ], // full is yellow (red+green) touch: [ 1, 0, 0 ], // touch is red move: [ 0, 1, 0 ], // m ...

prev 131 132 133 134 135 136 137 138 139 140 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow