We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14bf325 commit af97bc7Copy full SHA for af97bc7
plugins/plugs/gain-metering/gain-metering.cc
@@ -20,7 +20,10 @@ namespace clap {
20
return CLAP_PROCESS_CONTINUE;
21
}
22
23
- double getGainAdjustmentMetering() const noexcept { return std::sin(_phase * 2 * M_PI); }
+ double getGainAdjustmentMetering() const noexcept {
24
+ // 24 dB of amplitude, -12..12
25
+ return 12 * std::sin(_phase * 2 * M_PI);
26
+ }
27
28
double _phase = 0;
29
};
0 commit comments