From 6d68aeb7d2a09a5d3515058d3fd98a4b4a908322 Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Mon, 3 Dec 2018 21:25:45 -0500 Subject: Bugfix on Gatelope --- plugins/LinuxVST/src/Gatelope/GatelopeProc.cpp | 16 +++-- plugins/MacAU/Gatelope/Gatelope.cpp | 7 +- .../Gatelope.xcodeproj/christopherjohnson.pbxuser | 46 ++++++++----- .../christopherjohnson.perspectivev3 | 72 ++++++++++++++++----- .../Gatelope.xcodeproj/christopherjohnson.pbxuser | 36 +++++------ .../christopherjohnson.perspectivev3 | 21 +++--- plugins/MacVST/Gatelope/source/GatelopeProc.cpp | 16 +++-- plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo | Bin 23040 -> 22528 bytes plugins/WinVST/Gatelope/GatelopeProc.cpp | 16 +++-- 9 files changed, 156 insertions(+), 74 deletions(-) diff --git a/plugins/LinuxVST/src/Gatelope/GatelopeProc.cpp b/plugins/LinuxVST/src/Gatelope/GatelopeProc.cpp index dc81def..b32bddb 100755 --- a/plugins/LinuxVST/src/Gatelope/GatelopeProc.cpp +++ b/plugins/LinuxVST/src/Gatelope/GatelopeProc.cpp @@ -94,7 +94,7 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -121,6 +121,8 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample iirLowpassAR = (iirLowpassAR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassAL = (iirHighpassAL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassAR = (iirHighpassAR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -142,7 +144,7 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -169,6 +171,8 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample iirLowpassBR = (iirLowpassBR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassBL = (iirHighpassBL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassBR = (iirHighpassBR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -308,7 +312,7 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -335,6 +339,8 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 iirLowpassAR = (iirLowpassAR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassAL = (iirHighpassAL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassAR = (iirHighpassAR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -356,7 +362,7 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -383,6 +389,8 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 iirLowpassBR = (iirLowpassBR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassBL = (iirHighpassBL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassBR = (iirHighpassBR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); diff --git a/plugins/MacAU/Gatelope/Gatelope.cpp b/plugins/MacAU/Gatelope/Gatelope.cpp index bd93477..bde6522 100755 --- a/plugins/MacAU/Gatelope/Gatelope.cpp +++ b/plugins/MacAU/Gatelope/Gatelope.cpp @@ -263,7 +263,7 @@ void Gatelope::GatelopeKernel::Process( const Float32 *inSourceP, if (fabs(inputSample) > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -285,6 +285,7 @@ void Gatelope::GatelopeKernel::Process( const Float32 *inSourceP, if (treblefreq >= 1.0) iirLowpassA = inputSample; else iirLowpassA = (iirLowpassA * (1.0 - treblefreq)) + (inputSample * treblefreq); + if (bassfreq > 1.0) bassfreq = 1.0; if (bassfreq > 0.0) iirHighpassA = (iirHighpassA * (1.0 - bassfreq)) + (inputSample * bassfreq); else iirHighpassA = 0.0; @@ -297,7 +298,7 @@ void Gatelope::GatelopeKernel::Process( const Float32 *inSourceP, if (fabs(inputSample) > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -319,6 +320,8 @@ void Gatelope::GatelopeKernel::Process( const Float32 *inSourceP, if (treblefreq >= 1.0) iirLowpassB = inputSample; else iirLowpassB = (iirLowpassB * (1.0 - treblefreq)) + (inputSample * treblefreq); + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) iirHighpassB = (iirHighpassB * (1.0 - bassfreq)) + (inputSample * bassfreq); else iirHighpassB = 0.0; diff --git a/plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser b/plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser index e126c6d..7846c86 100755 --- a/plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser +++ b/plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser @@ -49,13 +49,15 @@ PBXFileDataSource_Warnings_ColumnID, ); }; - PBXPerProjectTemplateStateSaveDate = 565398383; - PBXWorkspaceStateSaveDate = 565398383; + PBXPerProjectTemplateStateSaveDate = 565571362; + PBXWorkspaceStateSaveDate = 565571362; }; perUserProjectItems = { 8B0209A521B3215F00952287 /* PlistBookmark */ = 8B0209A521B3215F00952287 /* PlistBookmark */; - 8B0209A721B3215F00952287 /* PBXTextBookmark */ = 8B0209A721B3215F00952287 /* PBXTextBookmark */; - 8B020A2621B3543D00952287 /* PBXTextBookmark */ = 8B020A2621B3543D00952287 /* PBXTextBookmark */; + 8B416D2421B5EF2500DD5013 /* PBXBookmark */ = 8B416D2421B5EF2500DD5013 /* PBXBookmark */; + 8B416D2921B5FD1F00DD5013 /* PBXTextBookmark */ = 8B416D2921B5FD1F00DD5013 /* PBXTextBookmark */; + 8B416D2E21B5FD3000DD5013 /* PBXTextBookmark */ = 8B416D2E21B5FD3000DD5013 /* PBXTextBookmark */; + 8B416D3421B5FD3000DD5013 /* PBXTextBookmark */ = 8B416D3421B5FD3000DD5013 /* PBXTextBookmark */; }; sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */; userBuildSettings = { @@ -73,31 +75,45 @@ rLen = 0; rLoc = 9223372036854775808; }; - 8B0209A721B3215F00952287 /* PBXTextBookmark */ = { + 8B416D2421B5EF2500DD5013 /* PBXBookmark */ = { + isa = PBXBookmark; + fRef = 8BA05A660720730100365D66 /* Gatelope.cpp */; + }; + 8B416D2921B5FD1F00DD5013 /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = 8BA05A690720730100365D66 /* GatelopeVersion.h */; name = "GatelopeVersion.h: 54"; rLen = 4; rLoc = 2884; rType = 0; - vrLen = 186; - vrLoc = 2764; + vrLen = 126; + vrLoc = 2816; }; - 8B020A2621B3543D00952287 /* PBXTextBookmark */ = { + 8B416D2E21B5FD3000DD5013 /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = 8BA05A690720730100365D66 /* GatelopeVersion.h */; name = "GatelopeVersion.h: 54"; rLen = 4; rLoc = 2884; rType = 0; - vrLen = 179; - vrLoc = 2764; + vrLen = 126; + vrLoc = 2816; + }; + 8B416D3421B5FD3000DD5013 /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 8BA05A660720730100365D66 /* Gatelope.cpp */; + name = "Gatelope.cpp: 325"; + rLen = 0; + rLoc = 13129; + rType = 0; + vrLen = 1897; + vrLoc = 12493; }; 8BA05A660720730100365D66 /* Gatelope.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {1082, 5044}}"; - sepNavSelRange = "{12923, 0}"; - sepNavVisRange = "{12454, 1858}"; + sepNavIntBoundsRect = "{{0, 0}, {1082, 5057}}"; + sepNavSelRange = "{13129, 0}"; + sepNavVisRange = "{12493, 1897}"; sepNavWindowFrame = "{{15, 39}, {1129, 834}}"; }; }; @@ -111,9 +127,9 @@ }; 8BA05A690720730100365D66 /* GatelopeVersion.h */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {761, 936}}"; + sepNavIntBoundsRect = "{{0, 0}, {456, 923}}"; sepNavSelRange = "{2884, 4}"; - sepNavVisRange = "{2764, 179}"; + sepNavVisRange = "{2816, 126}"; sepNavWindowFrame = "{{15, 43}, {705, 830}}"; }; }; diff --git a/plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 index 9631132..1a46c04 100755 --- a/plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 +++ b/plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 @@ -222,7 +222,48 @@ OpenEditors - + + + Content + + PBXProjectModuleGUID + 8B416D3221B5FD3000DD5013 + PBXProjectModuleLabel + Gatelope.cpp + PBXSplitModuleInNavigatorKey + + Split0 + + PBXProjectModuleGUID + 8B416D3321B5FD3000DD5013 + PBXProjectModuleLabel + Gatelope.cpp + _historyCapacity + 0 + bookmark + 8B416D3421B5FD3000DD5013 + history + + 8B416D2421B5EF2500DD5013 + + + SplitCount + 1 + + StatusBarVisibility + + + Geometry + + Frame + {{0, 20}, {1129, 737}} + PBXModuleWindowStatusBarHidden2 + + RubberWindowFrame + 15 95 1129 778 0 0 1440 878 + + + PerspectiveWidths 815 @@ -256,8 +297,6 @@ Layout - BecomeActive - ContentConfiguration PBXBottomSmartGroupGIDs @@ -354,11 +393,11 @@ _historyCapacity 0 bookmark - 8B020A2621B3543D00952287 + 8B416D2E21B5FD3000DD5013 history 8B0209A521B3215F00952287 - 8B0209A721B3215F00952287 + 8B416D2921B5FD1F00DD5013 SplitCount @@ -372,18 +411,18 @@ GeometryConfiguration Frame - {{0, 0}, {505, 83}} + {{0, 0}, {505, 67}} RubberWindowFrame 46 385 815 372 0 0 1440 878 Module PBXNavigatorGroup Proportion - 83pt + 67pt Proportion - 243pt + 259pt Tabs @@ -397,9 +436,7 @@ GeometryConfiguration Frame - {{10, 27}, {505, 216}} - RubberWindowFrame - 46 385 815 372 0 0 1440 878 + {{10, 27}, {505, 232}} Module XCDetailModule @@ -453,7 +490,9 @@ GeometryConfiguration Frame - {{10, 27}, {505, 299}} + {{10, 27}, {505, 232}} + RubberWindowFrame + 46 385 815 372 0 0 1440 878 Module PBXBuildResultsModule @@ -481,11 +520,11 @@ TableOfContents - 8B020A2721B3543D00952287 + 8B416D2F21B5FD3000DD5013 1CA23ED40692098700951B8B - 8B020A2821B3543D00952287 + 8B416D3021B5FD3000DD5013 8BD7274A1D46E5A5000176F0 - 8B020A2921B3543D00952287 + 8B416D3121B5FD3000DD5013 1CA23EDF0692099D00951B8B 1CA23EE00692099D00951B8B 1CA23EE10692099D00951B8B @@ -658,7 +697,7 @@ StatusbarIsVisible TimeStamp - 565400637.11916006 + 565574960.58745801 ToolbarConfigUserDefaultsMinorVersion 2 ToolbarDisplayMode @@ -675,6 +714,7 @@ 5 WindowOrderList + 8B416D3221B5FD3000DD5013 /Users/christopherjohnson/Desktop/MacAU/Gatelope/Gatelope.xcodeproj WindowString diff --git a/plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser b/plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser index 386d852..b9cbf51 100755 --- a/plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser +++ b/plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser @@ -49,11 +49,11 @@ PBXFileDataSource_Warnings_ColumnID, ); }; - PBXPerProjectTemplateStateSaveDate = 565404990; - PBXWorkspaceStateSaveDate = 565404990; + PBXPerProjectTemplateStateSaveDate = 565578826; + PBXWorkspaceStateSaveDate = 565578826; }; perUserProjectItems = { - 8B020A9C21B3651D00952287 /* PBXTextBookmark */ = 8B020A9C21B3651D00952287 /* PBXTextBookmark */; + 8B416DA521B60DFE00DD5013 /* PBXTextBookmark */ = 8B416DA521B60DFE00DD5013 /* PBXTextBookmark */; 8BDA3BB721B3655A00CC56FA /* PBXTextBookmark */ = 8BDA3BB721B3655A00CC56FA /* PBXTextBookmark */; }; sourceControlManager = 8B02375E1D42B1C400E1E8C8 /* Source Control */; @@ -78,7 +78,7 @@ }; 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {838, 19864}}"; + sepNavIntBoundsRect = "{{0, 0}, {838, 19838}}"; sepNavSelRange = "{10616, 0}"; sepNavVisRange = "{10613, 123}"; sepNavWindowFrame = "{{15, 42}, {895, 831}}"; @@ -86,22 +86,12 @@ }; 24D8286F09A914000093AEF8 /* GatelopeProc.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {852, 5733}}"; - sepNavSelRange = "{11891, 0}"; - sepNavVisRange = "{5114, 1948}"; - sepNavWindowFrame = "{{18, 47}, {895, 831}}"; + sepNavIntBoundsRect = "{{0, 0}, {852, 5772}}"; + sepNavSelRange = "{12330, 0}"; + sepNavVisRange = "{11625, 1699}"; + sepNavWindowFrame = "{{297, 47}, {895, 831}}"; }; }; - 8B020A9C21B3651D00952287 /* PBXTextBookmark */ = { - isa = PBXTextBookmark; - fRef = 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */; - name = "audioeffectx.cpp: 307"; - rLen = 0; - rLoc = 10616; - rType = 0; - vrLen = 157; - vrLoc = 10579; - }; 8B02375E1D42B1C400E1E8C8 /* Source Control */ = { isa = PBXSourceControlManager; fallbackIsa = XCSourceControlManager; @@ -116,6 +106,16 @@ isa = PBXCodeSenseManager; indexTemplatePath = ""; }; + 8B416DA521B60DFE00DD5013 /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */; + name = "audioeffectx.cpp: 307"; + rLen = 0; + rLoc = 10616; + rType = 0; + vrLen = 123; + vrLoc = 10613; + }; 8BDA3BB721B3655A00CC56FA /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */; diff --git a/plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 index a49c5d0..f01e0a3 100755 --- a/plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 +++ b/plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 @@ -351,10 +351,10 @@ _historyCapacity 0 bookmark - 8BDA3BB721B3655A00CC56FA + 8B416DA521B60DFE00DD5013 history - 8B020A9C21B3651D00952287 + 8BDA3BB721B3655A00CC56FA SplitCount @@ -368,18 +368,18 @@ GeometryConfiguration Frame - {{0, 0}, {603, 69}} + {{0, 0}, {603, 51}} RubberWindowFrame 17 371 810 487 0 0 1440 878 Module PBXNavigatorGroup Proportion - 69pt + 51pt Proportion - 372pt + 390pt Tabs @@ -393,7 +393,7 @@ GeometryConfiguration Frame - {{10, 27}, {603, 345}} + {{10, 27}, {603, 363}} RubberWindowFrame 17 371 810 487 0 0 1440 878 @@ -477,11 +477,11 @@ TableOfContents - 8BDA3BB821B3655A00CC56FA + 8B416DA621B60DFE00DD5013 1CA23ED40692098700951B8B - 8BDA3BB921B3655A00CC56FA + 8B416DA721B60DFE00DD5013 8B0237581D42B1C400E1E8C8 - 8BDA3BBA21B3655A00CC56FA + 8B416DA821B60DFE00DD5013 1CA23EDF0692099D00951B8B 1CA23EE00692099D00951B8B 1CA23EE10692099D00951B8B @@ -634,7 +634,7 @@ StatusbarIsVisible TimeStamp - 565405018.05823195 + 565579262.52925205 ToolbarConfigUserDefaultsMinorVersion 2 ToolbarDisplayMode @@ -651,7 +651,6 @@ 5 WindowOrderList - 8B020A8F21B3651D00952287 /Users/christopherjohnson/Desktop/MacVST/Gatelope/Gatelope.xcodeproj WindowString diff --git a/plugins/MacVST/Gatelope/source/GatelopeProc.cpp b/plugins/MacVST/Gatelope/source/GatelopeProc.cpp index dc81def..b32bddb 100755 --- a/plugins/MacVST/Gatelope/source/GatelopeProc.cpp +++ b/plugins/MacVST/Gatelope/source/GatelopeProc.cpp @@ -94,7 +94,7 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -121,6 +121,8 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample iirLowpassAR = (iirLowpassAR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassAL = (iirHighpassAL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassAR = (iirHighpassAR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -142,7 +144,7 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -169,6 +171,8 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample iirLowpassBR = (iirLowpassBR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassBL = (iirHighpassBL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassBR = (iirHighpassBR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -308,7 +312,7 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -335,6 +339,8 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 iirLowpassAR = (iirLowpassAR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassAL = (iirHighpassAL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassAR = (iirHighpassAR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -356,7 +362,7 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -383,6 +389,8 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 iirLowpassBR = (iirLowpassBR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassBL = (iirHighpassBL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassBR = (iirHighpassBR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); diff --git a/plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo b/plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo index a7bd637..e445e51 100755 Binary files a/plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo and b/plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo differ diff --git a/plugins/WinVST/Gatelope/GatelopeProc.cpp b/plugins/WinVST/Gatelope/GatelopeProc.cpp index dc81def..b32bddb 100755 --- a/plugins/WinVST/Gatelope/GatelopeProc.cpp +++ b/plugins/WinVST/Gatelope/GatelopeProc.cpp @@ -94,7 +94,7 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -121,6 +121,8 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample iirLowpassAR = (iirLowpassAR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassAL = (iirHighpassAL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassAR = (iirHighpassAR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -142,7 +144,7 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -169,6 +171,8 @@ void Gatelope::processReplacing(float **inputs, float **outputs, VstInt32 sample iirLowpassBR = (iirLowpassBR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassBL = (iirHighpassBL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassBR = (iirHighpassBR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -308,7 +312,7 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -335,6 +339,8 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 iirLowpassAR = (iirLowpassAR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassAL = (iirHighpassAL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassAR = (iirHighpassAR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); @@ -356,7 +362,7 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 if (highestSample > threshold) { treblefreq += attackSpeed; - if (treblefreq > 1.0) treblefreq = 1.0; + if (treblefreq > 2.0) treblefreq = 2.0; bassfreq -= attackSpeed; bassfreq -= attackSpeed; if (bassfreq < 0.0) bassfreq = 0.0; @@ -383,6 +389,8 @@ void Gatelope::processDoubleReplacing(double **inputs, double **outputs, VstInt3 iirLowpassBR = (iirLowpassBR * (1.0 - treblefreq)) + (inputSampleR * treblefreq); } + if (bassfreq > 1.0) bassfreq = 1.0; + if (bassfreq > 0.0) { iirHighpassBL = (iirHighpassBL * (1.0 - bassfreq)) + (inputSampleL * bassfreq); iirHighpassBR = (iirHighpassBR * (1.0 - bassfreq)) + (inputSampleR * bassfreq); -- cgit v1.2.3