summaryrefslogtreecommitdiff
path: root/plugins/ZamTube/ZamTubePlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ZamTube/ZamTubePlugin.cpp')
-rw-r--r--plugins/ZamTube/ZamTubePlugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/ZamTube/ZamTubePlugin.cpp b/plugins/ZamTube/ZamTubePlugin.cpp
index 1d7c9a5..4d7c453 100644
--- a/plugins/ZamTube/ZamTubePlugin.cpp
+++ b/plugins/ZamTube/ZamTubePlugin.cpp
@@ -359,7 +359,6 @@ void ZamTubePlugin::deactivate()
void ZamTubePlugin::run(const float** inputs, float** outputs, uint32_t frames)
{
const uint8_t stack = (uint8_t)tonestack > 24 ? 24 : (uint8_t)tonestack;
- const float adjustdb = Tonestacks::adjustdb[stack];
float fSlow0 = float(ts[stack][R4]);
float fSlow1 = float(ts[stack][R3]);
@@ -413,7 +412,7 @@ void ZamTubePlugin::run(const float** inputs, float** outputs, uint32_t frames)
float cut = insane ? 0. : 15.;
float pregain = from_dB(tubedrive*3.6364 - cut + mastergain);
- float postgain = from_dB(cut + adjustdb + 42. * (1. - log1p(tubedrive/11.)));
+ float postgain = from_dB(cut + 42. * (1. - log1p(tubedrive/11.)));
for (uint32_t i = 0; i < frames; ++i) {