shithub: soundpipe

ref: 95e6f8be0c1c450fc3800b6dd57e7d63212ea42c
dir: /util/faust/square.dsp/

View raw version
import("oscillator.lib");

freq = hslider("[1]frequency", 440, 0, 20000, 0.0001);
amp = hslider("[2]amp", 1, 0, 1, 0.00001);
width = hslider("[3]width", 0.5, 0, 1, 0.0000);

process = pulsetrainN(2, freq, width) * amp;