From 56be1d456c6bc6a74de4883beed4a17550c04f6d Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Mon, 30 Dec 2019 10:01:47 -0500 Subject: Inexplicable Bugfix: Baxandall This frequency must be twice as high as it's supposed to be, for no reason that I can understand --- plugins/WinVST/Baxandall/BaxandallProc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/WinVST') 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; -- cgit v1.2.3