MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / ZamAudioCompModule

Method ZamAudioCompModule

plugins/ZamAudio/src/compressor.cpp:70–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 ZamAudioCompModule()
71 {
72 config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
73
74 configParam(PARAM_ATTACK, 0.1f, 100.f, 10.f, "Attack", " ms");
75 configParam(PARAM_RELEASE, 1.f, 500.f, 80.f, "Release", " ms");
76 configParam(PARAM_THRESHOLD, -80.f, 0.f, 0.f, "Threshold", " db");
77 configParam(PARAM_RATIO, 1.f, 20.f, 4.f, "Ratio");
78 configParam(PARAM_KNEE, 0.f, 8.f, 0.f, "Knee", " dB");
79 configParam(PARAM_SLEW, 1.f, 150.f, 1.f, "Slew");
80 configParam(PARAM_MAKEUP, 0.f, 30.f, 0.f, "Makeup", " dB");
81 configInput(AUDIO_INPUT, "Audio");
82 configInput(SIDECHAIN_INPUT, "Sidechain");
83 configOutput(AUDIO_OUTPUT, "Audio");
84 configLight(OUTLEVEL, "Output Level");
85 configLight(GAINREDUCTION, "Gain Reduction");
86
87 gainred = 0.0f;
88 outlevel = -45.0f;
89 oldL_yl = oldL_y1 = oldL_yg = 0.f;
90 }
91
92 void process(const ProcessArgs& args) override
93 {

Callers

nothing calls this directly

Calls 1

configFunction · 0.85

Tested by

no test coverage detected