ref: 1110500359d75192a9e224f90fe6cc679a6e0a25
dir: /kick_drum.dsp/
// Simple kick drum declare name "Kick Drum"; declare group "synthesis"; import("stdfaust.lib"); aFreq = vslider("h:a/[0]frequency", 100, 10, 200, 5); aA = vslider("h:a/[1]attack", 0.001, 0.00001, 0.2, 0.001); aD = vslider("h:a/[2]delay", 0.01, 0.00001, 1.0, 0.001); aR = vslider("h:a/[3]release", 0.001, 0.00001, 1.0, 0.001); bA = vslider("h:b/[0]attack", 0.001, 0.00001, 0.2, 0.001); bFreq = checkbox("h:control/[1]b enable") * vslider("h:b/[1]frequency", 200, -400, 400, 5); bR = vslider("h:b/[2]release", 0.001, 0.00001, 0.2, 0.001); gate = button("h:control/[0]gate"); process = os.oscsin(aFreq + bFreq*en.ar(bA, bR, gate)) * en.adsr(aA, aD, 0.000001, aR, gate) <: _, _;