Skip to content

Instantly share code, notes, and snippets.

@ciarandg
Created May 18, 2020 00:35
Show Gist options
  • Save ciarandg/6d0c4e0c9218d3cba22e11c301959e60 to your computer and use it in GitHub Desktop.
Save ciarandg/6d0c4e0c9218d3cba22e11c301959e60 to your computer and use it in GitHub Desktop.
import("stdfaust.lib");
noiseGate = hgroup("Noise Gate",
ef.gate_mono(hslider("Threshold",-60,-60,0,1),
0.002, 0.3, 0.02));
gainMultiplier = hslider("Gain",2,1,25,0.1);
compressor = hgroup("Compressor",
co.compressor_mono(hslider("Ratio",8,1,10,0.1),
hslider("Threshold",-10,-60,0,1),
0.02, 0.02));
effectChain = noiseGate : *(gainMultiplier) : compressor;
inMeter = hgroup("Volume",attach(_,abs : ba.linear2db : hbargraph("Input",-60,0)));
outMeter = hgroup("Volume",attach(_,abs : ba.linear2db : hbargraph("Output",-60,0)));
process = _ <: inMeter,effectChain <: outMeter;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment