-
... { arg out = 0, freq=800, sustain=0.001, amp=0.5, pan = 0; var window; window = Env .sine(sustain, amp); Out .ar(out, Pan2 .ar( SinOsc .ar(freq) * EnvGen .ar(window, doneAction:2), pan ) ) } ).store; times = Pseq ([3.4, 1, 0.2, 0.2, 0.2], i ...
-
... er Nodes which are automatically freed after a certain time (for instance by an EnvGen with a doneAction of 2) will not. This keeps the implementation of the classes simple and lightweight. To have the current state of a Node tracked you ca ...
-
... Out .ar( bus, PlayBuf .ar( 1, bufnum, BufRateScale .kr(bufnum) * rateScale ) * EnvGen .kr( Env .sine( BufDur .kr(bufnum))) ) }).load(s); ) ( // test the synthdef ... does it work? (yes, it's fine. it plays on the left channel) Synth ( "aMo ...
-
... d,c],0.2); Out .ar(0, RLPF .ar( Mix .ar(p),freq * ffreqInterval.midiratio,rq) * EnvGen .kr( Env .adsr, gate, gate) ) },[0.1,0.1,0.1,0.1,0.1, nil ]).play(s); w = Window .new.front; int = ControlSpec (-48,48, \linear ,1); v = TabletSlider2D ( ...
-
... |freq = 440, amp = 0.2, sustain = 1| var sig; sig = SinOsc .ar(freq, 0, amp) * EnvGen .kr( Env .perc(0.01, sustain), doneAction: 2); Out .ar(0, sig ! 2); // sig ! 2 is the same as [sig, sig] }).send(s); r = Routine ({ var delta; loop { del ...
-
Event an environment that represents an action Inherits from: Object : Collection : Set : Dictionary : IdentityDictionary : Environment Related classes: Pattern An Event is an Environment that specifies an action to be taken in response to ...
-
... eAccurate = false ; ~x.play; // the grain frees itself ~x = { SinOsc .ar(800) * EnvGen .ar( Env .perc(0.001, 0.03, 0.4), doneAction:2) }; // jittery tone. ( r = Routine { loop { 200.do { arg i; ~x.spawn; (0.005).wait; }; 1.wait; } }.play; ) ...
-
... tartPos: start, doneAction:2); sig = PitchShift .ar(sig, pitchRatio: stretch) * EnvGen .kr( Env .linen(attack, time, decay), doneAction: 2); Out .ar(out, sig ! 2) }).add; // note add! Without this, arguments won't work ) ( TempoClock .defau ...
-
PdefGui a line of editing controls for a Pdef, and optionally its envir. Inherits from: JITGui: TaskProxyGui (like TdefGui) A gui showing the Pdef's name, playing state, source state, and envir state. Optionally, its envir can also be edite ...
-
... Map(a map) // synthdefs for these things are on the server already. ~a.gate, ~a.env, ~a.line, ~a.xline // some more calculations have to be made on client side, so if automated, it is better to use // the above or a lag in the synth. ~a.lin ...