«Lag to make waves» by 38nonprivate
on 12 Aug'11 18:55 inA starting point for "analogue emulation." Lagging a Pulse in different ways depending on direction of the input (up or down) changes the waveform as MouseX is swept from left to right.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
( { var freq = 100, shape, up, down, output; shape = MouseX.kr(0, 1); up = shape.clip(0.5, 1.0); up = [0.5, 1.0].asSpec.unmap(up); up = [0.0, 0.5].asSpec.map(up); down = shape.clip(0.0, 0.5); //up.poll; down.poll; output = Lag2UD.ar(Pulse.ar(freq, 0.5), freq.reciprocal * up, freq.reciprocal * down); output ! 2 }.scope; )
reception
comments