summaryrefslogtreecommitdiff
path: root/plugins/ZamTube/ZamTubePlugin.cpp
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2020-11-24 22:03:42 +1100
committerDamien Zammit <damien@zamaudio.com>2020-12-01 14:08:10 +1100
commit2f55cb574840d2c050e48f6ebf595b5cd3ef308b (patch)
tree192cf6c0db8bc1c4ccaf1f9e2c75a4f01fd997aa /plugins/ZamTube/ZamTubePlugin.cpp
parente25f001825f04d96419a0306be80aa4c21463e31 (diff)
Revert "ZamTube: Simplify circuit with no Ci capacitor - no sound quality loss"
This reverts commit 77da69c220dbb7cdccf3b316e567e6ae69a0579d.
Diffstat (limited to 'plugins/ZamTube/ZamTubePlugin.cpp')
-rw-r--r--plugins/ZamTube/ZamTubePlugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ZamTube/ZamTubePlugin.cpp b/plugins/ZamTube/ZamTubePlugin.cpp
index b47186b..b13fb4d 100644
--- a/plugins/ZamTube/ZamTubePlugin.cpp
+++ b/plugins/ZamTube/ZamTubePlugin.cpp
@@ -299,6 +299,7 @@ void ZamTubePlugin::activate()
// Passive components
/* Original WDF preamp
+ ci[0] = 100e-9;
rg[0] = 20e+3;
rk[0] = 1e+3;
ck[0] = 10e-6;
@@ -309,6 +310,7 @@ void ZamTubePlugin::activate()
*/
/* Matt's preamp */
+ ci[0] = 100e-9;
rg[0] = 1e-3;
rk[0] = 1200.; // 820 originally
ck[0] = 50e-6;
@@ -318,6 +320,7 @@ void ZamTubePlugin::activate()
ro[0] = 470e+3;
/* CLA's preamp
+ ci[0] = 1.0e-7;
rg[0] = 5.6e+3;
rk[0] = 1.5e+3;
ck[0] = 4.7e-6;
@@ -330,7 +333,7 @@ void ZamTubePlugin::activate()
int pre = 0;
float volumepot = 800e+3; // 100 good at low gain, 1000 good at high gain
ckt.on = false;
- ckt.updateRValues(ck[pre], co[pre], e[pre], er[pre], rg[pre], volumepot, rk[pre], 1e+3, ro[pre], Fs);
+ ckt.updateRValues(ci[pre], ck[pre], co[pre], e[pre], er[pre], rg[pre], volumepot, rk[pre], 1e+3, ro[pre], Fs);
ckt.warmup_tubes();
fSamplingFreq = Fs;