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 /plugins/WinVST | |
parent | 7b85f3eb20819c11eb67146d826f9e3d8a8e7d39 (diff) | |
download | airwindows-lv2-port-6d68aeb7d2a09a5d3515058d3fd98a4b4a908322.tar.gz airwindows-lv2-port-6d68aeb7d2a09a5d3515058d3fd98a4b4a908322.tar.bz2 airwindows-lv2-port-6d68aeb7d2a09a5d3515058d3fd98a4b4a908322.zip |
Bugfix on Gatelope
Diffstat (limited to 'plugins/WinVST')
-rwxr-xr-x | plugins/WinVST/Gatelope/.vs/VSTProject/v14/.suo | bin | 23040 -> 22528 bytes | |||
-rwxr-xr-x | plugins/WinVST/Gatelope/GatelopeProc.cpp | 16 |
2 files changed, 12 insertions, 4 deletions
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); |