-
LFSaw sawtooth oscillator LFSaw.ar(freq, iphase, mul, add) A non-band-limited sawtooth oscillator. Output ranges from -1 to +1. freq - frequency in Hertz iphase - initial phase offset. For efficiency reasons this is a value ranging from 0 t ...
-
... pos * pi, so that -1 becomes -pi and +1 becomes +pi. This allows you to use an LFSaw to do continuous rotation around a circle. x, y - input signals pos - angle to rotate around the circle from -1 to +1. -1 is 180 degrees, -0.5 is left, 0 ...
-
... ) Examples: ( // same as OnePole { var x; x = LFTri .ar(0.4, 0, 0.99); FOS .ar( LFSaw .ar(200, 0, 0.2), 1 - x.abs, 0.0, x) }.play; ) ( // same as OneZero { var x; x = LFTri .ar(0.4, 0, 0.99); FOS .ar( LFSaw .ar(200, 0, 0.2), 1 - x.abs, x, 0 ...
-
... ( // example signal to process play({ var z; z = Decay2 .ar( Impulse .ar(8, 0, LFSaw .kr(0.3, 0, -0.3, 0.3)), 0.001, 0.3, Mix .ar( Pulse .ar([80,81], 0.3))) }) ) ( // noise gate play({ var z; z = Decay2 .ar( Impulse .ar(8, 0, LFSaw .kr(0.3 ...
-
... .kr( XLine .kr(0.7, 300, 20), 0, 3600, 4000), 5) }.play; ( { var ctl = HPF .kr( LFSaw .kr(5), SinOsc .kr( XLine .kr(0.07,30,20), 0, 35, 40)) ; SinOsc .ar(ctl * 200 + 500) * 0.1; }.play; ) ( { var ctl = HPF .kr( LFSaw .kr(5,0.1), MouseX .kr( ...
-
... .ar) }.play // Running Average over x samples ( { var x = 100; RunningSum .ar( LFSaw .ar, x) * (x.reciprocal) }.play ) // RMS Power ( { var input, numsamp; input = LFSaw .ar; numsamp = 30; ( RunningSum .ar(input.squared, numsamp) / numsamp ...
-
... e result of a unary operator applied to a UGen . ( SinOsc .ar(200).abs).dump; ( LFSaw .ar(200).sin).dump; As in the examples given here, you don't usually need to instantiate UnaryOpUGen youself. Examples for unary operations on UGens are t ...
-
... / example signal to process Synth .play({ var z; z = Decay2 .ar( Impulse .ar(8, LFSaw .kr(0.25, -0.6, 0.7)), 0.001, 0.3, FSinOsc .ar(500)); }, 0.8) ) ( Synth .play({ var z; z = Decay2 .ar( Impulse .ar(8, LFSaw .kr(0.25, -0.6, 0.7)), 0.001, ...
-
... ycle; 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 not be the most efficient way if each input is cpu-expen ...
-
... , +1 is behind. gain - amplitude control ( { var w, x, y, p, q, a, b, c, d; p = LFSaw .ar(200); q = LFSaw .ar(301); // B-format encode #w, x, y = BiPanB2 .ar(p, q, MouseX .kr(-1,1), 0.1); // B-format decode to quad #a, b, c, d = DecodeB2 .a ...