-
... def/Tdef which are not useful for PatternProxy, EventStreamProxy and TaskProxy. envir_(event) provide a default environment for the proxy. If given, it is used as an environment for the routine function. When set for the first time, the rou ...
-
... ///////////////////////////////////////////// Scaling = multiplication Apply an envelope, in the form of a low-frequency sine wave, to a WhiteNoise generator. { WhiteNoise .ar(0.1) * SinOsc .kr(1, 1) }.scope; ( // scaling and mixing // ... ...
-
... (* all ) *clear Clear all proxies, setting their source to silence. *all *all_(envir) Set or return the environment ( IdentityDictionary ) that stores all instances. Changing the definition / setting the source One Tdef may have many tasks ...
-
... FreqShift SynthDef ( "frqShift1" ,{ arg frq,detune=1.5; var e1,left,right; e1 = EnvGen .ar( Env .new([0,1,0],[1,2.3]),1,doneAction:2); left = SinOsc .ar(frq,0,e1); // original tone left = left + FreqShift .ar(left,frq*detune); // shift and ...
-
... q, cutoff, volume, gate = 1| var sig = LPF .ar( Saw .ar(freq, volume), cutoff), env = EnvGen .kr( Env .adsr, gate, doneAction: 2); Out .ar(out, (sig * env) ! 2) }).add; SynthDescLib .global[ \mdDemo ].makeWindow; // Note in the resulting wi ...
-
s.waitForBoot { { SinOsc .ar( EnvGen .kr( Env ([440, 440, 324, 10000], [4, 2, 1], \exp ), doneAction:2)) * 0.1 }.play }
-
s.waitForBoot { { Saw .ar( EnvGen .kr( Env ([440, 440, 324, 10000] * 0.4, [4, 2, 1], \exp ), doneAction:2)) * 0.1 }.play }
-
... ; var gate; gate = Trig1 .kr(1.0, dt); Offset Out .ar(0, SinOsc .ar(800, 0.3) * EnvGen.kr( Env([0,0.1,0.1,0],[0.01,1.0,0.01],[-4,4],2), gate, doneAction: 2) ) }).send(s); Routine ({ 1.0.wait; 100.do({ s.sendBundle(0.05,["s_new", "trig1" ,-1 ...
-
... that will also encapsulate the unique logic for each part. We saw earlier that Penvir maintains a distinct environment for each stream made from the pattern. In other words, Penvir allows more complicated behavior to be modeled using an obj ...
-
... , nharms = 10, pan = 0, gate = 1 | var audio = Blip .ar(freq, nharms, amp); var env = Linen .kr(gate, doneAction: 2); OffsetOut .ar(out, Pan2 .ar(audio, pan, env) ); }).add; ); Pbind ( \instrument , \test , \freq , Prand ([1, 1.2, 2, 2.5, 3 ...