-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... 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}); )
-
... 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}); )
-
... 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 ...
-
... 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 ...
-
... \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 ...