-
... ynthDef(\help_sinegrain, { |out = 0, freq = 440, sustain = 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 ...
-
... t create a scope (namespace) for enclosed streams Source: Plambda.sc See also: Penvir , Pkey Plambda is used to create a namespace for patterns to share data among each other. Used in combination with Plet and Pget , it allows you to get th ...
-
... ing render . The makeFunction "makes" the protoEvent (i.e. protoEvent is currentEnvironment ). Typically, it defines and yields a sequence of events that create the needed resources using the following Event types : \allocRead load a file f ...
-
... amples: ( SynthDef(\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) ( var a; a = Pfunc({ exprand(0.1, ...
-
... erminal ( SynthDef(\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) ( a = Pfsm([ #[0, 1], 67, #[0, 0, ...
-
... 周波数、位相、振幅といったものをダイナミックに変調するにはエンベロープを使います。 // 振幅を変調する { SinOsc.ar(440, 0, 0.1) * EnvGen.kr(Env.sine(1), doneAction: Done.freeSelf) }.scope; ⧉ ✔ doneActionアーギュメント(コントロール)を2にセットすると、SuperColliderはSinOscとEnvGenのインスタンスを保持するために要求されていたメモリを解放することを確約 ...
-
... ch value has its own natural Editor as derived from Editor.for ( d = (freq:440, env: Env.adsr); e = Editor.for(d); e.gui ) ⧉ ✔ Class Methods . new Arguments: dict Inherited class methods Instance Methods . editing . value Arguments: dict . ...
-
... {arg gate = 1, magbuf, freqbuf, fftframes, scale = 1; var pars, src, out, trig, env; env = EnvGen.kr(Env([0, 1, 0], [1, 1], \sin, 1), gate, doneAction: 2); // we'll grab 50 random partials pars = Array.fill(50, {IRand.new(5, fftframes)}); / ...
-
... , a.size, a); ( SynthDef(\stepper, { |out| var rate, clock, index, freq, ffreq, env, out, rev, lfo; rate = MouseX.kr(1, 5, 1); clock = Impulse.kr(rate); env = Decay2.kr(clock, 0.002, 2.5); index = Stepper.kr(clock, 0, 0, 15, 1, 0); freq = B ...
-
... {arg gate = 1, magbuf, freqbuf, fftframes, scale = 1; var pars, src, out, trig, env; env = EnvGen.kr(Env([0, 1, 0], [1, 1], \sin, 1), gate, doneAction: 2); // we'll grab 50 random partials pars = Array.fill(50, {IRand.new(5, fftframes)}); / ...