summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2023-10-22 11:28:34 +1100
committerDamien Zammit <damien@zamaudio.com>2023-10-22 11:28:34 +1100
commitf0eeea6b71460b1f8e38f627fdf067688277eb4c (patch)
tree5ef7d47b4693035d728d65f9a88e44a74be51301
parent887356bd3fb4d4dbca5d6efbd1cacb73e9969906 (diff)
ZamTube: Make gridleak mode produce less muddy bass
-rw-r--r--plugins/ZamTube/wdfcircuits.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/ZamTube/wdfcircuits.h b/plugins/ZamTube/wdfcircuits.h
index 602e536..3c0c57f 100644
--- a/plugins/ZamTube/wdfcircuits.h
+++ b/plugins/ZamTube/wdfcircuits.h
@@ -137,7 +137,7 @@ public:
}
Real advanc_gridleak(Real ViE) {
- ViE *= 0.05;
+ ViE *= 2.;
//Get Bs
//S2_3GetB
//P2_3GetB
@@ -182,13 +182,14 @@ public:
//P1_2SetA
//Call tube model
Vg = (-S1_3b3);
- Real Vd = (Vk+Vg);
- Real Rd = (Vd > 0.) ? 2.7e+3 : 100e+9;
+ Vk = (-P1_3b3);
+ Real Vd = Vk+Vg;
+ Real Rd = (Vd > 0.) ? 2.7e+2 : 100e+4;
+ Vk += (Vg / Rd);
Real b = -t.compute(S2_3b3, S2_3Gamma1, Vg, Vk);
- Vk = -(P1_3b3 + Vd * S1_3Gamma1 / Rd);
//Set As
//S2_3SetA
- Real S2_3b1 = P2_3b3 - S2_3Gamma1*(P2_3b3 - (Vk+Vg) + b);
+ Real S2_3b1 = P2_3b3 - S2_3Gamma1*(P2_3b3 - (Vk) + b);
//P2_3SetA
Real P2_3b1 = S2_3b1 + E500E - S3_3b3 - P2_3Gamma1*(E500E - S3_3b3);
//S3_3SetA
@@ -197,7 +198,7 @@ public:
Real S3_3b2 = Cob + P2_3b1 - S3_3Gamma1*(Cob + P2_3b1);
//RoSetA
Real Roa = S3_3b2;
- Real S2_3b2 = P2_3b3 + b - S2_3Gamma1*(P2_3b3 - (Vk+Vg) + b);
+ Real S2_3b2 = P2_3b3 + b - S2_3Gamma1*(P2_3b3 - (Vk) + b);
//P1_3SetA
Real P1_3b1 = S2_3b2 - Ckb - P1_3Gamma1*(-Ckb);
Cka = P1_3b1;