-
... LFNoise0.kr(8); out = if( noise > 0.0, if(noise > 0.5, if(noise > 0.9, WhiteNoise.ar(0.2), Pulse.ar(60, 0.5, 0.4)), SinOsc.ar(500, 0, 0.25) ), Saw.ar(160, 0.5) ); out ! 2 }.play; )
-
... Env.linen( 10, 0.000001, 0.0001, 0.5).kr(doneAction: 2); snd = LPF.ar( in: WhiteNoise.ar(env), freq: 2000, mul: amp ); Out.ar(out, Pan2.ar(snd, pan)); }).add; SynthDef("hihat", {arg out = 0, amp = 0.5, att = 0.01, rel = ...
-
... s when the signal changes from non-positive to positive. { Blip .ar( Latch .ar( WhiteNoise .ar, Impulse .ar(9)) * 400 + 500, 4, 0.2) }.play; The above is just meant as example. LFNoise0 is a faster way to generate random steps : { Blip .ar( ...
-
... env, freqdev; // use mouse x to control panning pan = MouseX .kr(-1, 1); // use WhiteNoise and mouse y to control deviation from center pitch freqdev = WhiteNoise .kr( MouseY .kr(0, 400)); env = EnvGen .kr( Env ([0, 1, 0], [1, 1], \sin , 1) ...
-
// test //-- INIT //-- PLAY ( Ndef(\xxx, { |freq = 200| BPF.ar( WhiteNoise.ar(0.3 ! 2) + GrayNoise.ar(0.2), XLine.kr(0.5, 1, 4) * freq.lagud([1, 0.2, 0.5], [0.2, 0.6, 0.3]) * [[1, 1.2, 1.5]], 0.01 ).flop.sum }).play; ); ( Tdef(\xtest, { loo ...
-
... mes SynthDef ( \test , { arg buffer; var src, tapPhase, tap1, tap2, tap3; src = WhiteNoise .ar(0.2) * Decay .kr( Dust .kr(3), 0.2); tapPhase = DelTapWr .ar(buffer, src); #tap1, tap2, tap3 = DelTapRd .ar(buffer, tapPhase, [0.2, 0.27, 0.303], ...
-
... Buffer.read(s, ExampleFiles.child); // crossfade between original and magmul-ed whitenoise ( { var in, in2, chain, chainB, chainC; in = PlayBuf.ar(1, d, BufRateScale.kr(d), loop: 1) * 2; in2 = WhiteNoise.ar; chain = FFT(LocalBuf(2048), in); ...
-
... mes SynthDef ( \test , { arg buffer; var src, tapPhase, tap1, tap2, tap3; src = WhiteNoise .ar(0.2) * Decay .kr( Dust .kr(3), 0.2); tapPhase = DelTapWr .ar(buffer, src); #tap1, tap2, tap3 = DelTapRd .ar(buffer, tapPhase, [0.2, 0.27, 0.303], ...
-
... ally flat to begin with, ie, an impulse train ( Impulse UGen ) or white noise ( WhiteNoise UGen ). The two big hits to CPU costs here are large n, causing peaky calculation hits once per window as autocorrelation coefficients are calculated ...
-
... ? _.close; q.knobs = 4.collect{ Knob() }; q.labels = ["SinOsc","Saw","LFNoise","WhiteNoise"]; q.numboxes = 4.collect{ NumberBox() }; q.texts = q.labels.collect{ |st| StaticText().string_(st) }; q.button = Button().states_([[0],[1]]); q.wind ...