-
... amp = 1, envbuf| var pan, 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 ...
-
... reset the seed at a variable rate ( x = { |seed = 1956| RandSeed.kr(Impulse.kr(MouseX.kr(0.1, 100)), seed); }.play; ) x.set(\seed, 2001); x.set(\seed, 1798); x.set(\seed, 1902); // above you can see that the sound of the LFNoise1 is not ex ...
-
... n, chain, bufnum; bufnum = LocalBuf.new(1024); chain = PV_BufRd(bufnum, recBuf, MouseX.kr(0.0, 1.0)); Out.ar(out, IFFT(chain, 1).dup); }).add; ); b = Synth("pvplay", [\out, 0, \bufnum, x, \recBuf, y]); // stop the synth b.free; ⧉ ✔ helpfile ...
-
... ( \stepper , { 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 = BufRd .kr(1, 10, index, 1, ...
-
... s but you do not need to { Out .ar(1, PinkNoise .ar(0.1)) }.play; { XOut .ar(0, MouseX .kr(0,1), PinkNoise .ar(0.1*[1,1])) }.play; // mouse x controls level synthDef.play(target, args, addAction) returns: a Synth Note that you need an out u ...
-
... ef("playamp", { arg krBus; var sig, amp, trig, thresh; thresh = MouseX.kr((-15),(-60)); sig = PlayBuf.ar(2,c,0.99,loop:inf); amp = Amplitude.kr(sig).ampdb; trig = amp >= thresh; Out.kr(krBus,t ...
-
... hShiftPAWr.ar(in, b); PitchShiftPARd.ar( phase, b, freq, // trackingFreq freq * MouseX.kr(0.5, 2), // synthFreq - here we multiply tracking frequency by pitch ratio; this may also be a value unrelated to the tracking frequency MouseY.kr(0.5 ...
-
... }.play ) ( { var dseq, trig; dseq = Dseq([MouseY.kr(1, 18), MouseX.kr(1, 18), 4], inf); trig = Impulse.kr(5); SinOsc.ar( (48 + Demand.kr(trig, 0, dseq)).midicps, 0, 0.5 ) ! 2 }.play ) ( { va ...
-
... sndbuf, envbuf| var pan, env, freqdev; // use mouse x to control panning pan = MouseX.kr(-1, 1); env = EnvGen.kr( Env([0, 1, 0], [1, 1], \sin, 1), gate, levelScale: amp, doneAction: Done.freeSelf); Out.ar(out, GrainBuf.ar(2, Impulse.kr(10) ...
-
... um), loop: 1); chain = FFT (bufnum, in); chain = PV_Whiten (chain, trackbufnum, MouseX .kr(0.01, 10, 1), smear: MouseY .kr(0, 1)); Out .ar(out, 0.5 * IFFT (chain).dup); }).play(s,[ \out , 0, \bufnum , b.bufnum, \soundBufnum , c.bufnum, \tra ...