-
... ing */ *tsv_string_to_dict {|tsv| ^Dictionary.newFrom( tsv.split($\n).collect({|line| line.split($\t) }).flatten ) } }
-
... riod.doOnce({w.close}); ) //keep reduniverse window open and run the code below line by line s.boot ( ~createObj= {|x= 0.5, y= 0.5, vx= 0, vy= 0, size= 10, dur= 40| var p; p= RedParticle(~world, RedVector[x*~world.dim[0], y*~world.dim[1]], ...
-
... tep= (ub.height-2)/channels.size; (channels.size+1).do{|i| var y= i*step+1; Pen.line(Point(ub.left-10, y), Point(ub.width+40, y)); }; Pen.stroke; Pen.strokeColor= Color.new255(200, 200, 200); (channels.size+1).do{|i| var y= i*step+1; Pen.li ...
-
... w for different gravities in different dimensions (gravity or repulsion along a line)
-
// dotEdge.sc - (c) rohan drape, 2004-2007 // Generate the line of Dot code that describes an edge in a UGen // graph. + Object { dotEdge { arg file, ugen, index; } } + UGen { dotEdge { arg file, ugen, index; if(this.isControlProxy, { file. ...
-
... |value| ^this.constrain( value ); } storeArgs { ^[ default ] } // views viewNumLines { ^4 } makeView { |parent, bounds, label, action, resize| var view, vws, stp, labelWidth; var subViewHeight, subViewWidth; var getPoint; var angle = 0, an ...
-
... t = count+1) <limit } },{ 0.1.wait; }); 0.01.wait; } *pipe {|command| var pipe, line; //var timinginfo; //SCMIR.waitOnUnixCmd(command); //can't run while unix process blocks the app, so no updates //timinginfo = {var time= 1; 0.wait; inf.do ...
-
... troller value from 0 -> 127 */ \Decibels-> 13, /* logarithmic relative gain */ \LinearGain-> 14, /* linear relative gain */ \Degrees-> 15, /* -180 to 180 degrees, similar to phase but more general (good for 3D coord system) */ \EqualPowerCr ...
-
... rc(attackTime: att, releaseTime: rel, level: amp, curve: curve).kr; chaosRise = Line.kr(start: chaosUpStart, end: chaosUpEnd, dur: chaosUpTime ); chaosFall = Line.kr(start: chaosDownStart, end: chaosDownEnd, dur: chaosDownTime); //Switches ...
-
... ; GUI.pen.rotate(rot); GUI.pen.strokeColor = Color.black; if(arrow, { //GUI.pen.line(0@0, Point(40, 0)); GUI.pen.line(Point(25, 0), Point(7, 6)); GUI.pen.line(Point(25, 0), Point(7, -6)); }); GUI.pen.stroke; //GUI.pen.color = Color.white; / ...