-
... (left) to almost-square (right) var sig = (SinOsc.ar(MouseY.kr(100, 1000, 1)) * MouseX.kr(1,10)).clip2(1); var val = Crest.kr(sig, 440).poll; (sig * 0.1).dup }.play ) ( // Or as a plot (which shows the odd results you get over the first few ...
-
... ate = 1, amp = 1, envbuf| var pan, env; // 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, GrainIn.ar(2, Impulse.kr(32), ...
-
... ne.kr(800, 100, 5), 0.0, 0.5, 0) }.play ⧉ ✔ modulate phase: { Impulse.ar(4, [0, MouseX.kr(0, 1)], 0.2) }.play; ⧉ ✔ an Impulse with frequency 0 returns a single impulse: SynthDef(\imp, { OffsetOut.ar(0, Impulse.ar(0)); FreeSelf.kr(Impulse.kr ...
-
... bsampleOffset.ir; // balance out subsample offset sampleOffset = sampleOffset + MouseX.kr(0, addOffset); // add a mouse dependent offset // cubic resampling: resampledSignal = DelayC.ar(in, maxdelaytime: sampDur * (1 + extraSamples), delayt ...
-
... ); ~out.xmapn(\a_in, ~f2); ~f2.xmapn(\a_in, ~x1); ~f2.xset(\dt, 0.01); ~mx1 = { MouseX.kr(0.0001, 1, 1) }; ~f2.xmap(\dt, ~mx1); ~out.xmapn(\a_in, ~f3); ~f3.xmapn(\a_in, ~f2); ~f2.xmapn(\a_in, ~x1); // this should maybe be: // ~f2 --(\a_in)- ...
-
... nherited instance methods Examples // default initial params { LatoocarfianL.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s); ⧉ ✔ // randomly modulate all params ( { LatoocarfianL.ar( SampleRate.ir/4, LFNoise2.kr(2, 1.5, 1.5), LFNoise2.kr( ...
-
... both outfreq and infreq parameters with the mouse: {PermModT.ar(SinOsc.ar(220), MouseX.kr(500, 1200), MouseY.kr(1200,4000))}.play //Remember to avoid the outfreq>infreq case! // Distort any input with an Electronic Telephone Ring effect: {P ...
-
... te).range(0, 10)}.dup(2); // Our "query point" wanders around in space input = [MouseX.kr(0, 10), MouseY.kr(0, 10)]; // Or you can wander yourself using the mouse gate = Impulse.kr(rate); result = GaussClass.kr(input, b, gate); input.poll(g ...
-
... ee the change in phase deviation. ( x = { var in, chain, flux; in = SinOsc .ar( MouseX .kr(50, 500, 1), 0, 0.1) + WhiteNoise .ar( MouseY .kr(0, 0.1)); chain = FFT (b.bufnum, in); flux = FFTPhaseDev .kr(chain); flux.poll(10, "Phase deviation ...
-
... 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 ...