Created
March 8, 2025 03:34
-
-
Save AvneeshSarwate/efa8c44226c297272ca3536509fd3bdf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import("stdfaust.lib"); | |
f = hslider("v:brass/h:[0]midi/[0]freq[style:knob]",440,50,1000,0.01); | |
gain = hslider("v:brass/h:[0]midi/[2]gain[style:knob]",0.5,0,1,0.01); | |
envAttack = hslider("v:brass/h:[0]midi/[3]envAttack[style:knob",1,0,30,0.01)*0.001; | |
s = hslider("v:brass/h:[0]midi/[4]sustain[hidden:1][midi:ctrl 64][style:knob]",0,0,1,1); | |
t = button("v:brass/[2]gate"); | |
gate = t+s : min(1); | |
envelope = gate*gain : si.smooth(ba.tau2pole(envAttack)); | |
process = os.sawtooth(f) * envelope * gain <: _, _; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment