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/LinuxVST/src/Baxandall/BaxandallProc.cpp | 4 ++-- plugins/MacAU/Baxandall/Baxandall.cpp | 2 +- .../Baxandall.xcodeproj/christopherjohnson.pbxuser | 26 ++++++++++----------- .../christopherjohnson.perspectivev3 | 27 +++++++++++----------- .../Baxandall.xcodeproj/christopherjohnson.pbxuser | 10 ++++---- .../christopherjohnson.perspectivev3 | 18 ++++++++------- plugins/MacVST/Baxandall/source/BaxandallProc.cpp | 4 ++-- plugins/WinVST/Baxandall/BaxandallProc.cpp | 4 ++-- 8 files changed, 49 insertions(+), 46 deletions(-) diff --git a/plugins/LinuxVST/src/Baxandall/BaxandallProc.cpp b/plugins/LinuxVST/src/Baxandall/BaxandallProc.cpp index 123d328..9f75cce 100755 --- a/plugins/LinuxVST/src/Baxandall/BaxandallProc.cpp +++ b/plugins/LinuxVST/src/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; diff --git a/plugins/MacAU/Baxandall/Baxandall.cpp b/plugins/MacAU/Baxandall/Baxandall.cpp index 01d5659..aefc66f 100755 --- a/plugins/MacAU/Baxandall/Baxandall.cpp +++ b/plugins/MacAU/Baxandall/Baxandall.cpp @@ -203,7 +203,7 @@ void Baxandall::BaxandallKernel::Process( const Float32 *inSourceP, trebleA[0] = trebleB[0] = trebleFreq; Float64 bassGain = pow(10.0,GetParameter( kParam_Two )/20.0); Float64 bassFreq = pow(10.0,-GetParameter( kParam_Two )/20.0); - bassFreq = (4410.0*bassFreq)/GetSampleRate(); + bassFreq = (8820.0*bassFreq)/GetSampleRate(); if (bassFreq > 0.45) bassFreq = 0.45; bassA[0] = bassB[0] = bassFreq; trebleA[1] = trebleB[1] = 0.4; diff --git a/plugins/MacAU/Baxandall/Baxandall.xcodeproj/christopherjohnson.pbxuser b/plugins/MacAU/Baxandall/Baxandall.xcodeproj/christopherjohnson.pbxuser index c1a960e..68ec71d 100755 --- a/plugins/MacAU/Baxandall/Baxandall.xcodeproj/christopherjohnson.pbxuser +++ b/plugins/MacAU/Baxandall/Baxandall.xcodeproj/christopherjohnson.pbxuser @@ -51,13 +51,13 @@ PBXFileDataSource_Warnings_ColumnID, ); }; - PBXPerProjectTemplateStateSaveDate = 598750626; - PBXWorkspaceStateSaveDate = 598750626; + PBXPerProjectTemplateStateSaveDate = 599405904; + PBXWorkspaceStateSaveDate = 599405904; }; perUserProjectItems = { 8B1927DA23B013EA00D75552 /* PlistBookmark */ = 8B1927DA23B013EA00D75552 /* PlistBookmark */; - 8B19288923B032DA00D75552 /* PBXTextBookmark */ = 8B19288923B032DA00D75552 /* PBXTextBookmark */; - 8B8184ED23B035A8004A8ECB /* PBXTextBookmark */ = 8B8184ED23B035A8004A8ECB /* PBXTextBookmark */; + 8B96B42523BA3E7F00E8F2D2 /* PBXTextBookmark */ = 8B96B42523BA3E7F00E8F2D2 /* PBXTextBookmark */; + 8B96B44F23BA42C000E8F2D2 /* PBXTextBookmark */ = 8B96B44F23BA42C000E8F2D2 /* PBXTextBookmark */; }; sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */; userBuildSettings = { @@ -75,32 +75,32 @@ rLen = 0; rLoc = 9223372036854775808; }; - 8B19288923B032DA00D75552 /* PBXTextBookmark */ = { + 8B96B42523BA3E7F00E8F2D2 /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = 8BA05A660720730100365D66 /* Baxandall.cpp */; name = "Baxandall.cpp: 232"; rLen = 0; rLoc = 10285; rType = 0; - vrLen = 649; - vrLoc = 9207; + vrLen = 551; + vrLoc = 9357; }; - 8B8184ED23B035A8004A8ECB /* PBXTextBookmark */ = { + 8B96B44F23BA42C000E8F2D2 /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = 8BA05A660720730100365D66 /* Baxandall.cpp */; name = "Baxandall.cpp: 232"; rLen = 0; rLoc = 10285; rType = 0; - vrLen = 585; - vrLoc = 9271; + vrLen = 518; + vrLoc = 9003; }; 8BA05A660720730100365D66 /* Baxandall.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {656, 3913}}"; + sepNavIntBoundsRect = "{{0, 0}, {656, 3848}}"; sepNavSelRange = "{10285, 0}"; - sepNavVisRange = "{9271, 585}"; - sepNavWindowFrame = "{{680, 53}, {817, 818}}"; + sepNavVisRange = "{9003, 518}"; + sepNavWindowFrame = "{{598, 57}, {817, 818}}"; }; }; 8BA05A690720730100365D66 /* BaxandallVersion.h */ = { diff --git a/plugins/MacAU/Baxandall/Baxandall.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacAU/Baxandall/Baxandall.xcodeproj/christopherjohnson.perspectivev3 index f18dfd3..e67b32d 100755 --- a/plugins/MacAU/Baxandall/Baxandall.xcodeproj/christopherjohnson.perspectivev3 +++ b/plugins/MacAU/Baxandall/Baxandall.xcodeproj/christopherjohnson.perspectivev3 @@ -354,11 +354,11 @@ _historyCapacity 0 bookmark - 8B8184ED23B035A8004A8ECB + 8B96B44F23BA42C000E8F2D2 history 8B1927DA23B013EA00D75552 - 8B19288923B032DA00D75552 + 8B96B42523BA3E7F00E8F2D2 SplitCount @@ -372,18 +372,18 @@ GeometryConfiguration Frame - {{0, 0}, {531, 202}} + {{0, 0}, {531, 188}} RubberWindowFrame 599 206 841 654 0 0 1440 878 Module PBXNavigatorGroup Proportion - 202pt + 188pt Proportion - 406pt + 420pt Tabs @@ -397,9 +397,7 @@ GeometryConfiguration Frame - {{10, 27}, {531, 379}} - RubberWindowFrame - 599 206 841 654 0 0 1440 878 + {{10, 27}, {531, 393}} Module XCDetailModule @@ -453,7 +451,9 @@ GeometryConfiguration Frame - {{10, 27}, {531, 352}} + {{10, 27}, {531, 393}} + RubberWindowFrame + 599 206 841 654 0 0 1440 878 Module PBXBuildResultsModule @@ -481,11 +481,11 @@ TableOfContents - 8B8184EE23B035A8004A8ECB + 8B96B42B23BA3E9000E8F2D2 1CA23ED40692098700951B8B - 8B8184EF23B035A8004A8ECB + 8B96B42C23BA3E9000E8F2D2 8BD7274A1D46E5A5000176F0 - 8B8184F023B035A8004A8ECB + 8B96B42D23BA3E9000E8F2D2 1CA23EDF0692099D00951B8B 1CA23EE00692099D00951B8B 1CA23EE10692099D00951B8B @@ -658,7 +658,7 @@ StatusbarIsVisible TimeStamp - 598750632.76480103 + 599409344.02047396 ToolbarConfigUserDefaultsMinorVersion 2 ToolbarDisplayMode @@ -675,6 +675,7 @@ 5 WindowOrderList + 8B96B45023BA42C000E8F2D2 /Users/christopherjohnson/Desktop/Plugins/MacAU/Baxandall/Baxandall.xcodeproj WindowString diff --git a/plugins/MacVST/Baxandall/Baxandall.xcodeproj/christopherjohnson.pbxuser b/plugins/MacVST/Baxandall/Baxandall.xcodeproj/christopherjohnson.pbxuser index 202d94d..7b0c36b 100755 --- a/plugins/MacVST/Baxandall/Baxandall.xcodeproj/christopherjohnson.pbxuser +++ b/plugins/MacVST/Baxandall/Baxandall.xcodeproj/christopherjohnson.pbxuser @@ -49,8 +49,8 @@ PBXFileDataSource_Warnings_ColumnID, ); }; - PBXPerProjectTemplateStateSaveDate = 598748462; - PBXWorkspaceStateSaveDate = 598748462; + PBXPerProjectTemplateStateSaveDate = 599409457; + PBXWorkspaceStateSaveDate = 599409457; }; sourceControlManager = 8B02375E1D42B1C400E1E8C8 /* Source Control */; userBuildSettings = { @@ -82,9 +82,9 @@ }; 24D8286F09A914000093AEF8 /* BaxandallProc.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {848, 4745}}"; - sepNavSelRange = "{2589, 0}"; - sepNavVisRange = "{1324, 2327}"; + sepNavIntBoundsRect = "{{0, 0}, {848, 3705}}"; + sepNavSelRange = "{6544, 0}"; + sepNavVisRange = "{0, 2302}"; sepNavWindowFrame = "{{165, 57}, {895, 821}}"; }; }; diff --git a/plugins/MacVST/Baxandall/Baxandall.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacVST/Baxandall/Baxandall.xcodeproj/christopherjohnson.perspectivev3 index 1d2389e..0157255 100755 --- a/plugins/MacVST/Baxandall/Baxandall.xcodeproj/christopherjohnson.perspectivev3 +++ b/plugins/MacVST/Baxandall/Baxandall.xcodeproj/christopherjohnson.perspectivev3 @@ -256,6 +256,8 @@ Layout + BecomeActive + ContentConfiguration PBXBottomSmartGroupGIDs @@ -298,7 +300,7 @@ PBXSmartGroupTreeModuleOutlineStateSelectionKey - 5 + 6 4 0 @@ -384,6 +386,8 @@ Frame {{10, 27}, {603, 414}} + RubberWindowFrame + 145 318 810 487 0 0 1440 878 Module XCDetailModule @@ -438,8 +442,6 @@ Frame {{10, 27}, {603, 414}} - RubberWindowFrame - 145 318 810 487 0 0 1440 878 Module PBXBuildResultsModule @@ -467,11 +469,11 @@ TableOfContents - 8B19286323B02D3200D75552 + 8B1A37D623BA433E00D44C50 1CA23ED40692098700951B8B - 8B19286423B02D3200D75552 + 8B1A37D723BA433E00D44C50 8B0237581D42B1C400E1E8C8 - 8B19286523B02D3200D75552 + 8B1A37D823BA433E00D44C50 1CA23EDF0692099D00951B8B 1CA23EE00692099D00951B8B 1CA23EE10692099D00951B8B @@ -624,7 +626,7 @@ StatusbarIsVisible TimeStamp - 598750605.93217099 + 599409470.30736601 ToolbarConfigUserDefaultsMinorVersion 2 ToolbarDisplayMode @@ -641,7 +643,7 @@ 5 WindowOrderList - /Users/christopherjohnson/Desktop/Baxandall/Baxandall.xcodeproj + /Users/christopherjohnson/Desktop/Plugins/MacVST/Baxandall/Baxandall.xcodeproj WindowString 145 318 810 487 0 0 1440 878 diff --git a/plugins/MacVST/Baxandall/source/BaxandallProc.cpp b/plugins/MacVST/Baxandall/source/BaxandallProc.cpp index 123d328..9f75cce 100755 --- a/plugins/MacVST/Baxandall/source/BaxandallProc.cpp +++ b/plugins/MacVST/Baxandall/source/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; 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