diff options
author | Chris Johnson <jinx6568@sover.net> | 2018-12-03 21:25:45 -0500 |
---|---|---|
committer | Chris Johnson <jinx6568@sover.net> | 2018-12-03 21:25:45 -0500 |
commit | 6d68aeb7d2a09a5d3515058d3fd98a4b4a908322 (patch) | |
tree | 1f9d17dfd6ee97213b1bf3049ed7c01c8bc8f700 | |
parent | 7b85f3eb20819c11eb67146d826f9e3d8a8e7d39 (diff) | |
download | airwindows-lv2-port-6d68aeb7d2a09a5d3515058d3fd98a4b4a908322.tar.gz airwindows-lv2-port-6d68aeb7d2a09a5d3515058d3fd98a4b4a908322.tar.bz2 airwindows-lv2-port-6d68aeb7d2a09a5d3515058d3fd98a4b4a908322.zip |
Bugfix on Gatelope
-rwxr-xr-x | plugins/LinuxVST/src/Gatelope/GatelopeProc.cpp | 16 | ||||
-rwxr-xr-x | plugins/MacAU/Gatelope/Gatelope.cpp | 7 | ||||
-rwxr-xr-x | plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser | 46 | ||||
-rwxr-xr-x | plugins/MacAU/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 | 72 | ||||
-rwxr-xr-x | plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.pbxuser | 36 | ||||
-rwxr-xr-x | plugins/MacVST/Gatelope/Gatelope.xcodeproj/christopherjohnson.perspectivev3 | 21 | ||||
-rwxr-xr-x | plugins/MacVST/Gatelope/source/GatelopeProc.cpp | 16 | ||||
-rwxr-xr-x | plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo | bin | 23040 -> 22528 bytes | |||
-rwxr-xr-x | 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 @@ </dict> </array> <key>OpenEditors</key> - <array/> + <array> + <dict> + <key>Content</key> + <dict> + <key>PBXProjectModuleGUID</key> + <string>8B416D3221B5FD3000DD5013</string> + <key>PBXProjectModuleLabel</key> + <string>Gatelope.cpp</string> + <key>PBXSplitModuleInNavigatorKey</key> + <dict> + <key>Split0</key> + <dict> + <key>PBXProjectModuleGUID</key> + <string>8B416D3321B5FD3000DD5013</string> + <key>PBXProjectModuleLabel</key> + <string>Gatelope.cpp</string> + <key>_historyCapacity</key> + <integer>0</integer> + <key>bookmark</key> + <string>8B416D3421B5FD3000DD5013</string> + <key>history</key> + <array> + <string>8B416D2421B5EF2500DD5013</string> + </array> + </dict> + <key>SplitCount</key> + <string>1</string> + </dict> + <key>StatusBarVisibility</key> + <true/> + </dict> + <key>Geometry</key> + <dict> + <key>Frame</key> + <string>{{0, 20}, {1129, 737}}</string> + <key>PBXModuleWindowStatusBarHidden2</key> + <false/> + <key>RubberWindowFrame</key> + <string>15 95 1129 778 0 0 1440 878 </string> + </dict> + </dict> + </array> <key>PerspectiveWidths</key> <array> <integer>815</integer> @@ -256,8 +297,6 @@ <key>Layout</key> <array> <dict> - <key>BecomeActive</key> - <true/> <key>ContentConfiguration</key> <dict> <key>PBXBottomSmartGroupGIDs</key> @@ -354,11 +393,11 @@ <key>_historyCapacity</key> <integer>0</integer> <key>bookmark</key> - <string>8B020A2621B3543D00952287</string> + <string>8B416D2E21B5FD3000DD5013</string> <key>history</key> <array> <string>8B0209A521B3215F00952287</string> - <string>8B0209A721B3215F00952287</string> + <string>8B416D2921B5FD1F00DD5013</string> </array> </dict> <key>SplitCount</key> @@ -372,18 +411,18 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{0, 0}, {505, 83}}</string> + <string>{{0, 0}, {505, 67}}</string> <key>RubberWindowFrame</key> <string>46 385 815 372 0 0 1440 878 </string> </dict> <key>Module</key> <string>PBXNavigatorGroup</string> <key>Proportion</key> - <string>83pt</string> + <string>67pt</string> </dict> <dict> <key>Proportion</key> - <string>243pt</string> + <string>259pt</string> <key>Tabs</key> <array> <dict> @@ -397,9 +436,7 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{10, 27}, {505, 216}}</string> - <key>RubberWindowFrame</key> - <string>46 385 815 372 0 0 1440 878 </string> + <string>{{10, 27}, {505, 232}}</string> </dict> <key>Module</key> <string>XCDetailModule</string> @@ -453,7 +490,9 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{10, 27}, {505, 299}}</string> + <string>{{10, 27}, {505, 232}}</string> + <key>RubberWindowFrame</key> + <string>46 385 815 372 0 0 1440 878 </string> </dict> <key>Module</key> <string>PBXBuildResultsModule</string> @@ -481,11 +520,11 @@ </array> <key>TableOfContents</key> <array> - <string>8B020A2721B3543D00952287</string> + <string>8B416D2F21B5FD3000DD5013</string> <string>1CA23ED40692098700951B8B</string> - <string>8B020A2821B3543D00952287</string> + <string>8B416D3021B5FD3000DD5013</string> <string>8BD7274A1D46E5A5000176F0</string> - <string>8B020A2921B3543D00952287</string> + <string>8B416D3121B5FD3000DD5013</string> <string>1CA23EDF0692099D00951B8B</string> <string>1CA23EE00692099D00951B8B</string> <string>1CA23EE10692099D00951B8B</string> @@ -658,7 +697,7 @@ <key>StatusbarIsVisible</key> <true/> <key>TimeStamp</key> - <real>565400637.11916006</real> + <real>565574960.58745801</real> <key>ToolbarConfigUserDefaultsMinorVersion</key> <string>2</string> <key>ToolbarDisplayMode</key> @@ -675,6 +714,7 @@ <integer>5</integer> <key>WindowOrderList</key> <array> + <string>8B416D3221B5FD3000DD5013</string> <string>/Users/christopherjohnson/Desktop/MacAU/Gatelope/Gatelope.xcodeproj</string> </array> <key>WindowString</key> 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 @@ <key>_historyCapacity</key> <integer>0</integer> <key>bookmark</key> - <string>8BDA3BB721B3655A00CC56FA</string> + <string>8B416DA521B60DFE00DD5013</string> <key>history</key> <array> - <string>8B020A9C21B3651D00952287</string> + <string>8BDA3BB721B3655A00CC56FA</string> </array> </dict> <key>SplitCount</key> @@ -368,18 +368,18 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{0, 0}, {603, 69}}</string> + <string>{{0, 0}, {603, 51}}</string> <key>RubberWindowFrame</key> <string>17 371 810 487 0 0 1440 878 </string> </dict> <key>Module</key> <string>PBXNavigatorGroup</string> <key>Proportion</key> - <string>69pt</string> + <string>51pt</string> </dict> <dict> <key>Proportion</key> - <string>372pt</string> + <string>390pt</string> <key>Tabs</key> <array> <dict> @@ -393,7 +393,7 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{10, 27}, {603, 345}}</string> + <string>{{10, 27}, {603, 363}}</string> <key>RubberWindowFrame</key> <string>17 371 810 487 0 0 1440 878 </string> </dict> @@ -477,11 +477,11 @@ </array> <key>TableOfContents</key> <array> - <string>8BDA3BB821B3655A00CC56FA</string> + <string>8B416DA621B60DFE00DD5013</string> <string>1CA23ED40692098700951B8B</string> - <string>8BDA3BB921B3655A00CC56FA</string> + <string>8B416DA721B60DFE00DD5013</string> <string>8B0237581D42B1C400E1E8C8</string> - <string>8BDA3BBA21B3655A00CC56FA</string> + <string>8B416DA821B60DFE00DD5013</string> <string>1CA23EDF0692099D00951B8B</string> <string>1CA23EE00692099D00951B8B</string> <string>1CA23EE10692099D00951B8B</string> @@ -634,7 +634,7 @@ <key>StatusbarIsVisible</key> <true/> <key>TimeStamp</key> - <real>565405018.05823195</real> + <real>565579262.52925205</real> <key>ToolbarConfigUserDefaultsMinorVersion</key> <string>2</string> <key>ToolbarDisplayMode</key> @@ -651,7 +651,6 @@ <integer>5</integer> <key>WindowOrderList</key> <array> - <string>8B020A8F21B3651D00952287</string> <string>/Users/christopherjohnson/Desktop/MacVST/Gatelope/Gatelope.xcodeproj</string> </array> <key>WindowString</key> 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 Binary files differindex a7bd637..e445e51 100755 --- a/plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo +++ b/plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo 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); |