-
... ); { var p,qnty=4,gate; gate = In.kr(b); p = Mix.arFill(qnty.asInteger,{ arg i; SinOsc.ar(440 + rrand(1,5)) }) * qnty.reciprocal; Enveloper2.ar(p,gate,Env.adsr) }.play; ) // On b.value = 1.0; // Off b.value = 0.0; b.value = 0.2; b.value = 0 ...
-
... ods Examples s.boot; ( { |out = 0, bufnum = 0| var in, fft, fft2, shifted; in = SinOsc.ar(500, 0, 0.1); fft = FFT(LocalBuf(2048), in); fft2 = FFT(LocalBuf(2048), in); shifted = PV_PhaseShift90(fft); Out.ar(out, [IFFT(fft2), IFFT(shifted)]); ...
-
... ol = Control.names(\array).kr(Array.rand(numsines, 400.0, 1000.0)); sines = Mix(SinOsc.ar(control, 0, numsines.reciprocal)) ; Out.ar(out, sines ! 2); }).add ) b = Synth(\help_Control_Sines); b.setn(\array, Array.rand(20, 200, 1600)); b.setn ...
-
... s methods Instance Methods Inherited instance methods Examples ( { var a; a = [ SinOsc.ar, Saw.ar, Pulse.ar ]; TChoose.ar(Dust.ar(MouseX.kr(1, 1000, 1)), a) * 0.2 }.play; ) ⧉ ✔ NOTE: all the ugens are continuously running. This may not be t ...
-
... d instance methods Examples SynthDef("help-PulseCount", { |out = 0| Out.ar(out, SinOsc.ar( PulseCount.ar(Impulse.ar(10), Impulse.ar(0.4)) * 200, 0, 0.05 ) ) }).play; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Pul ...
-
... methods Instance Methods Inherited instance methods Examples s.boot; { Wrap.ar(SinOsc.ar(440, 0, 0.2), -0.15, 0.15) }.scope; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Wrap.schelp link::Classes/Wrap::
-
... open autogui in one line SynthDef(\test, { arg out = 0, freq = 100; Out.ar(out, SinOsc.ar(freq)) }).add.autogui; // Attach to a running Synth x = Synth(\test).autogui; // No scope x = Synth(\test).autogui(scopeOn: false); // With custom Con ...
-
... object. ) // then do this ( SynthDef("help-Rand", { arg out = 0; Out.ar( out, FSinOsc.ar( Rand(200.0, 400.0), // frequency between 200 and 400 Hz 0, Line.kr(0.2, 0, 1, doneAction: Done.freeSelf) // frees itself ) ) }).play(s); ) x.free; ⧉ ...
-
... ig = Impulse.kr(MouseX.kr(1, 400, 1)); freq = Demand.kr(trig, 0, a) * 30 + 340; SinOsc.ar(freq) * 0.1 }.play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Dwrand.schelp link::Classes/Dwrand::
-
... fer; var in, chain; // a sample signal (strong sin tone, little PinkNoise) in = SinOsc.ar(440, 0, 0.4) + PinkNoise.ar(0.1); chain = FFT(buffer, in); chain = PV_Invert(chain); Out.ar(0, [in, IFFT(chain) * 0.5]); }).add; s.boot; s.sendMsg(\b_ ...