-
... See also FFT Overview . s.boot; ( { var inA, chainA, inB, chainB, chain ; inA = Saw .ar( LFNoise1 .kr(2).exprange(10, 1000)); inB = Pulse .ar( LFNoise1 .kr(2).exprange(10, 1000)); chainA = FFT ( LocalBuf (2048), inA); chainB = FFT ( LocalBu ...
-
... See also FFT Overview . s.boot; ( { var inA, chainA, inB, chainB, chain ; inA = Saw .ar( LFNoise1 .kr(2).exprange(10, 1000)); inB = Pulse .ar( LFNoise1 .kr(2).exprange(10, 1000)); chainA = FFT ( LocalBuf (2048), inA); chainB = FFT ( LocalBu ...
-
... requency in Hertz. rq - the reciprocal of Q. bandwidth / cutoffFreq. { BRF .ar( Saw .ar(200, 0.1), FSinOsc .kr( XLine .kr(0.7, 300, 20), 0, 3800, 4000), 0.3) }.play; { BRF .ar( Saw .ar(200, 0.5), MouseX .kr(100, 10000, 1), 0.3) }.play; // B ...
-
... Q. bandwidth / cutoffFreq. // modulate filter frequency with a sine { BPF .ar( Saw .ar(200, 0.5), SinOsc .kr( XLine .kr(0.7, 300, 20), 0, 3600, 4000), 0.3) }.play; // modulate filter frequency with the cursor position { BPF .ar( Saw .ar(20 ...
-
... To run (evaluate) one line of code, such as { SinOsc .ar([400, 401], 0, 0.1) * Saw .ar([11, 33], 1) * EnvGen .kr( Env .sine(10)) }.play first make sure that the localhost server is booted. Then put the cursor anywhere on the line (shown ab ...
-
... t to another constructor, then another array is created, and so on. { RLPF .ar( Saw .ar([100,250],0.05), XLine .kr(8000,400,5), 0.05) }.play; // the [100,250] array of frequency inputs to Saw causes Saw.ar to return // an array of two Saws, ...
-
... mple. All we need is addition: { PinkNoise .ar(0.2) + SinOsc .ar(440, 0, 0.2) + Saw .ar(660, 0.2) }.play; Saw is another type of oscillator, with a waveform that looks like a sawtooth. Note that we use a low value for mul, thus ensuring tha ...
-
... array) Select.kr(which, array) // examples ( { var a, cycle; a = [ SinOsc .ar, Saw .ar, Pulse .ar ]; cycle = a.size * 0.5; Select .ar( LFSaw .kr(1.0,0.0,cycle,cycle),a) * 0.2 }.play; ) Note: all the ugens are continously running. This may ...
-
... ly. // ~y is still unused, we will add it later. ~z = (~y * pi).sin * 0.1 * { LFSaw .kr( LFNoise1 .kr(0.1 ! 3).sum * -18).max(0.2) }; // other slot numbers are accessed by positive integers: ~y[1] = { Saw .ar([400, 401.3], 0.4) }; ~y[0] = { ...
-
s.waitForBoot { { Saw .ar( EnvGen .kr( Env ([440, 440, 324, 10000] * 0.4, [4, 2, 1], \exp ), doneAction:2)) * 0.1 }.play }