Skip to content

Commit af97bc7

Browse files
committed
Higher amplitude for the gain metering
1 parent 14bf325 commit af97bc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/plugs/gain-metering/gain-metering.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ namespace clap {
2020
return CLAP_PROCESS_CONTINUE;
2121
}
2222

23-
double getGainAdjustmentMetering() const noexcept { return std::sin(_phase * 2 * M_PI); }
23+
double getGainAdjustmentMetering() const noexcept {
24+
// 24 dB of amplitude, -12..12
25+
return 12 * std::sin(_phase * 2 * M_PI);
26+
}
2427

2528
double _phase = 0;
2629
};

0 commit comments

Comments
 (0)