Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Lag to make waves
name
code content
( { 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; )
code description
A 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.
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change