-
... tion as external force // stays while spring oscillation decays ( x = { var f = SinOsc.ar(500, 0, 0.3), mass = 0.001, spring = 1500, dampen = 0.003, sig = Fb1_SD.ar(f/mass, spring/mass, dampen/mass); sig[1] ! 2 }.play ) x.release // SD as m ...
-
... tion as external force // stays while spring oscillation decays ( x = { var f = SinOsc.ar(500, 0, 0.3), mass = 0.001, spring = 1500, dampen = 0.003, sig = Fb1_MSD.ar(f, mass, spring, dampen); sig[1] ! 2 }.play ) x.release // MSD as modulato ...
-
... = In.ar(in, 2); lfo = LFDNoise3.kr(lfoFreq).range(modFreqLo, modFreqHi); mod = SinOsc.ar(lfo); sig = inSig * mod; Out.ar(out, ((1 - mix) * inSig + (sig * mix)) * amp); }).add; SynthDef(\rectifier, { |out = 0, in, amount = 0, mix = 1, amp = ...
-
... play; // e.g. modulate the panning Ndef(\myEuroModule).map(\pos, Ndef(\posMod, {SinOsc.kr(1.0)})); // fade out in 2 seconds Ndef(\myEuroModule).clear(2.0); ⧉ ✔ Class Methods . new Arguments: soundIn SoundIn bus number where the audio signal ...
-
... .do{ |i| { var freq = pitches[i].midicps; var env = Env.perc.ar(Done.freeSelf); SinOsc.ar(freq) * 0.1 * env }.play; 0.2.wait } } ) ⧉ ✔ . clipAt ( index ) Similar to -at , but guarantees that any value for index is valid by clipping values o ...
-
... env = EnvGen.kr(Env([0, 1, 0], [0.1, 3], \sin, 1), gate, doneAction: 2); src = SinOsc.ar(x * 330 + 220, 0, y * 0.5); Out.ar(0, src * env); }).add; // a dictionary to put our notes into - keyed with the id of the touch n = Dictionary.new; / ...
-
... h by step using arrow keys: ( s.waitForBoot({ n = { |freq = 220| var out; out = SinOsc.ar(freq, 0, 0.2); 8.do{ out = AllpassN.ar(out, 0.2, 0.02+0.20.rand, 8) }; out; }.play; w = Window("Use arrow keys to change the frequency by steps", Rect ...
-
... EnvGen.kr(Env.perc(0.01, sustain, 0.3), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) x.play; ( x.source = { loop { s.sendMsg("/s_new", "pdef_grainlet", -1, 0, 0, \freq, rrand(600, 640)); 0.1.wait; } } ) ( x.sou ...
-
... an, amp=0.3| var e, z; e = EnvGen.ar(Env.perc(0, 0.1, amp), doneAction: 2); z = SinOsc.ar(freq, 0, 0.2); OffsetOut.ar(0, Pan2.ar(z * e, pan)); }).add; ); ) // play a pattern on clock t: ( Pdef(\a, Pbind(\instrument, \ping, \degree, Pseq((0. ...
-
... string of arguments and default values for a method. Example: Help.methodArgs("SinOsc.ar") In SuperCollider version 3.5.2, SCDoc has been rewritten and the parser is now implemented in C++ for speed and stability. The syntax has gotten str ...