diff options
author | Chris Johnson <jinx6568@sover.net> | 2019-12-30 10:01:47 -0500 |
---|---|---|
committer | Chris Johnson <jinx6568@sover.net> | 2019-12-30 10:01:47 -0500 |
commit | 56be1d456c6bc6a74de4883beed4a17550c04f6d (patch) | |
tree | cda060c9deb04fab910c6a00200762ee9a1dcda5 /plugins/WinVST | |
parent | ebeb1e6ee104b464fe1f5104c28387d86f85dec0 (diff) | |
download | airwindows-lv2-port-56be1d456c6bc6a74de4883beed4a17550c04f6d.tar.gz airwindows-lv2-port-56be1d456c6bc6a74de4883beed4a17550c04f6d.tar.bz2 airwindows-lv2-port-56be1d456c6bc6a74de4883beed4a17550c04f6d.zip |
Inexplicable Bugfix: Baxandall
This frequency must be twice as high as it's supposed to be, for no reason that I can understand
Diffstat (limited to 'plugins/WinVST')
-rwxr-xr-x | plugins/WinVST/Baxandall/BaxandallProc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/WinVST/Baxandall/BaxandallProc.cpp b/plugins/WinVST/Baxandall/BaxandallProc.cpp index 123d328..9f75cce 100755 --- a/plugins/WinVST/Baxandall/BaxandallProc.cpp +++ b/plugins/WinVST/Baxandall/BaxandallProc.cpp @@ -20,7 +20,7 @@ void Baxandall::processReplacing(float **inputs, float **outputs, VstInt32 sampl trebleAL[0] = trebleBL[0] = trebleAR[0] = trebleBR[0] = trebleFreq; double bassGain = pow(10.0,((B*30.0)-15.0)/20.0); double bassFreq = pow(10.0,-((B*30.0)-15.0)/20.0); - bassFreq = (4410.0*bassFreq)/getSampleRate(); + bassFreq = (8820.0*bassFreq)/getSampleRate(); if (bassFreq > 0.45) bassFreq = 0.45; bassAL[0] = bassBL[0] = bassAR[0] = bassBR[0] = bassFreq; trebleAL[1] = trebleBL[1] = trebleAR[1] = trebleBR[1] = 0.4; @@ -157,7 +157,7 @@ void Baxandall::processDoubleReplacing(double **inputs, double **outputs, VstInt trebleAL[0] = trebleBL[0] = trebleAR[0] = trebleBR[0] = trebleFreq; double bassGain = pow(10.0,((B*30.0)-15.0)/20.0); double bassFreq = pow(10.0,-((B*30.0)-15.0)/20.0); - bassFreq = (4410.0*bassFreq)/getSampleRate(); + bassFreq = (8820.0*bassFreq)/getSampleRate(); if (bassFreq > 0.45) bassFreq = 0.45; bassAL[0] = bassBL[0] = bassAR[0] = bassBR[0] = bassFreq; trebleAL[1] = trebleBL[1] = trebleAR[1] = trebleBR[1] = 0.4; |