aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/WinVST
diff options
context:
space:
mode:
authorChris Johnson <jinx6568@sover.net>2019-07-22 13:30:57 -0400
committerChris Johnson <jinx6568@sover.net>2019-07-22 13:30:57 -0400
commit6dd021a943e73f08ae71644e8f6d7a788cd4a61c (patch)
tree41b510c58ee08d64671d5208c7c55c9dcc7b6a36 /plugins/WinVST
parentbde8acec545feee9142906bd4744e84522c56fbd (diff)
downloadairwindows-lv2-port-6dd021a943e73f08ae71644e8f6d7a788cd4a61c.tar.gz
airwindows-lv2-port-6dd021a943e73f08ae71644e8f6d7a788cd4a61c.tar.bz2
airwindows-lv2-port-6dd021a943e73f08ae71644e8f6d7a788cd4a61c.zip
Bugfix for Mojo!
Added dB markings to things and fixed a gain issue on all the VST versions
Diffstat (limited to 'plugins/WinVST')
-rwxr-xr-xplugins/WinVST/Mojo/Mojo.cpp2
-rwxr-xr-xplugins/WinVST/Mojo/MojoProc.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/WinVST/Mojo/Mojo.cpp b/plugins/WinVST/Mojo/Mojo.cpp
index bef296a..7b34fba 100755
--- a/plugins/WinVST/Mojo/Mojo.cpp
+++ b/plugins/WinVST/Mojo/Mojo.cpp
@@ -95,7 +95,7 @@ void Mojo::getParameterDisplay(VstInt32 index, char *text) {
void Mojo::getParameterLabel(VstInt32 index, char *text) {
switch (index) {
- case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
+ case kParamA: vst_strncpy (text, "dB", kVstMaxParamStrLen); break;
default: break; // unknown parameter, shouldn't happen!
}
}
diff --git a/plugins/WinVST/Mojo/MojoProc.cpp b/plugins/WinVST/Mojo/MojoProc.cpp
index 303de25..60f986d 100755
--- a/plugins/WinVST/Mojo/MojoProc.cpp
+++ b/plugins/WinVST/Mojo/MojoProc.cpp
@@ -14,7 +14,7 @@ void Mojo::processReplacing(float **inputs, float **outputs, VstInt32 sampleFram
float* out1 = outputs[0];
float* out2 = outputs[1];
- double gain = (A*24.0)-12.0;
+ double gain = pow(10.0,((A*24.0)-12.0)/20.0);
while (--sampleFrames >= 0)
{
@@ -61,7 +61,7 @@ void Mojo::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sa
double* out1 = outputs[0];
double* out2 = outputs[1];
- double gain = (A*24.0)-12.0;
+ double gain = pow(10.0,((A*24.0)-12.0)/20.0);
while (--sampleFrames >= 0)
{