Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... 0.01], releaseTime: [0.01, 0.2] ); [sig] ++ amps }.plot .superpose_(true) .plotColor_([Color.black, Color.green, Color.blue]); ) ( // use input amplitude to control SinOsc frequency { SinOsc.ar( Amplitude.kr( Blip.ar(3, 20) * LFNoise1.kr(0 ...

  2. 026-multiple_barycenter Doc

    ... ce(o.gravityForce(oo)); }); }; o.update; world.contain(o); //--render Pen.strokeColor= Color.blue; Pen.strokeOval(Rect.aboutRedObject2D(o)); }; world.objects.do{|o, i| bary= bary+(o.loc*o.mass); }; bary= bary/totalMass; Pen.fillColor= Color ...

  3. 026-multiple_barycenter Quark

    ... ce(o.gravityForce(oo)); }); }; o.update; world.contain(o); //--render Pen.strokeColor= Color.blue; Pen.strokeOval(Rect.aboutRedObject2D(o)); }; world.objects.do{|o, i| bary= bary+(o.loc*o.mass); }; bary= bary/totalMass; Pen.fillColor= Color ...

  4. PartConvBufferView Quark

    ... if( File.exists( inPartConvBuffer.path.getGPath ? "" ) ) { views[ \path ].stringColor = Color.black; } { views[ \path ].stringColor = Color.red(0.66); }; { views[ \duration ].string = (inPartConvBuffer.duration ? 0).asSMPTEString(1000); }.d ...

  5. TabletSlider2D Doc

    ... 0, 280)) .x_(0.5) // initial location of x .y_(1) // initial location of y .knobColor_(Color.rand) .action_({|sl| [\sliderX, sl.x, \sliderY, sl.y].postln; }); t.step_(0.01); n = CompositeView.new(w, 200@300); n.decorator = FlowLayout(n.boun ...

  6. 021-superfriction Doc

    ... vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.green; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.close}); )

  7. 021-superfriction Quark

    ... vel*0; //stop object }); }); obj.update; world.contain(obj); //--render Pen.fillColor= Color.green; Pen.fillRect(fric); Pen.strokeColor= Color.white; Pen.strokeRect(Rect.aboutRedObject2D(obj)); }; w.play; CmdPeriod.doOnce({w.close}); )

  8. ClockFace Doc

    ... curBeat.postln; curBeat.even.if({ (curBeat == 2).if({ a.window.view.background_(Color.red(0.9)) }, { a.window.view.background_(Color.red(0.6)) }) }, { a.window.view.background_(Color.white) }) }); a.play; // change the tempo at the next bar ...

  9. SCMBufferPoolItemView Quark

    ... this.layout = mainLayout; mainLayout.margins = [5, 5, 20, 5]; this.background = Color(0.45490196078431, 0.55686274509804, 0.87843137254902); dragBothPanel = DragBoth(); dragBothPanel.fixedWidth = 24; dragBothPanel.background = Color.black.a ...

  10. korg-microkey.desc Quark

    ... \noteOnOff, style: ( row: (4 - (i div: 48 * 2)) + (pos.y * 0.9), column: pos.x, color: pos.color, height: 1.2 )) ); } ), ( key: 'mod', 'midiMsgType': 'cc', 'elementType': 'modWheel', 'midiNum': 1, 'spec': 'midiCC', style: (row: 0, column: 1 ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow