diff options
author | Damien Zammit <damien@zamaudio.com> | 2019-01-16 21:26:39 +1100 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2019-01-16 21:26:39 +1100 |
commit | cd14015b9253626d5786d49ba763468eecdf22ce (patch) | |
tree | b1cf8baff4ae8111dfb9544a43e87d721856be4c | |
parent | 618ece87e1ca6c47a004184bf5ab5072a12d265c (diff) |
Compensate for insane boost in postgain to level it out completely
-rw-r--r-- | plugins/ZamTube/ZamTubePlugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ZamTube/ZamTubePlugin.cpp b/plugins/ZamTube/ZamTubePlugin.cpp index 81f8587..de69c2a 100644 --- a/plugins/ZamTube/ZamTubePlugin.cpp +++ b/plugins/ZamTube/ZamTubePlugin.cpp @@ -354,8 +354,9 @@ void ZamTubePlugin::run(const float** inputs, float** outputs, uint32_t frames) float tubeout = 0.f; float cut = insane ? 0. : -15.; + float compensate = insane ? -15. : 0.; float pregain = from_dB(tubedrive*3.6364 + cut); - float postgain = from_dB(mastergain + 36.*(1. - tubedrive/11.)); + float postgain = from_dB(compensate + mastergain + 36.*(1. - tubedrive/11.)); for (uint32_t i = 0; i < frames; ++i) { |