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 --- .../Gatelope.xcodeproj/christopherjohnson.pbxuser | 36 +++++++++++----------- .../christopherjohnson.perspectivev3 | 21 ++++++------- plugins/MacVST/Gatelope/source/GatelopeProc.cpp | 16 +++++++--- 3 files changed, 40 insertions(+), 33 deletions(-) (limited to 'plugins/MacVST') 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); -- cgit v1.2.3