-
... 1000, i_end=500, i_time=1; ReplaceOut.kr(i_bus, Line.kr(i_start, i_end, i_time, doneAction: Done.freeSelf)); }).add ) Play a 900 Hz sine wave. s.sendMsg("/s_new", "sine", x = s.nextNodeID, 1, 1, "freq", 900); Put a frequency value on the co ...
-
... gsArray(args)} { this.value } ), buffer.bufnum, loop:0); Line.ar(dur: duration, doneAction: 2); }); Routine.run({ var c; c = Condition.new; server.sendMsgSync(c, *buffer.allocMsg); server.sendMsgSync(c, "/d_recv", def.asBytes); synth = Synt ...
-
... n; if ( attributes == nil, { // not cached already // parse attributes, this is done once on first access to attibutes and then cached attributes = Dictionary.new; pos = splitIndex; while ( { xml[pos].isSpace } , { // attribute(s) may follo ...
-
... ", { |out, freq = 440| Out.ar(out, SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf) ) }).store; ) // write a sample file for testing ( var f, g; TempoClock.default.tempo = 1; g = [ [0.1, [\s_new, \helpscore, 1000, 0, ...
-
... = 0.05, amp = 0.1| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2, amp), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) ( var a; a = Pn(Pbinop(\hypot, Pseries(0, 1, 34), Pseries(3, -1, 34)), inf).asStream; ...
-
... nodeproxy's variable name (at least in proxyspace). Since the actual lookup is done in the Pdef's dictionary, you can easily interchange NPdef and NPxdef with one another, to change the event type. See also NPdef which is similar but does ...
-
... = 1, amp = 1, pan| var env, u = 1; env = EnvGen.kr(Env.perc(0.03, sustain), 1, doneAction: Done.freeSelf); 5.do { var d; d = exprand(0.01, 1); u = SinOsc.ar(d * 300, u, rrand(0.1, 1.2) * d, 1) }; Out.ar(out, Pan2.ar(SinOsc.ar(u + 1 * freq, ...
-
... nique(Drand([0, 1, 2, 3, 4, 5], inf), 20); { Duty.ar(0.5e-4 + 0.001.rand, 0, x, doneAction: Done.freeSelf) } ! 3 }.plot; ⧉ ✔ Inherited class methods Instance Methods Inherited instance methods Undocumented instance methods . asUGenInput . p ...
-
... nt to see otherwise...\ \;\ image.unlockFocus; // do not forget to call it when done\ image.recache; // in case \ \ w = SCWindow ( "Drawing Scale" , Rect (310, 500, 400, 400)).front;\ w.view.background_( Color .clear);\ w.drawHook = \\ Pen ...
-
... ts the color used to fill the whole area occupied by the view below the drawing done in -drawFunc . You can set the background at any moment, even within the drawFunc , but any drawing done in that Function will always be displayed on top o ...