ref: 5168bc0b8701ce9f48427e4bceb36097e424c60f
dir: /kick_drum.dsp/
// Simple kick drum declare name "Kick Drum"; declare group "synthesis"; import("stdfaust.lib"); aFreq = vslider("h:a/[0]frequency[unit:Hz]", 100, 10, 400, 5); aA = vslider("h:a/[1]attack[unit:s]", 0.001, 0.00001, 0.2, 0.001); aD = vslider("h:a/[2]delay[unit:s]", 0.01, 0.00001, 1.0, 0.001); aR = vslider("h:a/[3]release[unit:s]", 0.001, 0.00001, 1.0, 0.001); bA = vslider("h:b/[0]attack[unit:s]", 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[unit:s]", 0.001, 0.00001, 1, 0.001); gate = button("h:control/[0]gate"); process = os.hs_oscsin(aFreq + bFreq*en.ar(bA, bR, gate)) * en.adsr(aA, aD, 0.000001, aR, gate);