From 4108ca2236a7d87ca3c843985ddd721d610b2b99 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 24 Jun 2013 18:01:20 +0100 Subject: [PATCH] Fix typo in parameter CC automation, leading to bad values --- source/backend/plugin/BridgePlugin.cpp | 2 +- source/backend/plugin/DssiPlugin.cpp | 2 +- source/backend/plugin/FluidSynthPlugin.cpp | 2 +- source/backend/plugin/LadspaPlugin.cpp | 2 +- source/backend/plugin/LinuxSamplerPlugin.cpp | 2 +- source/backend/plugin/Lv2Plugin.cpp | 2 +- source/backend/plugin/NativePlugin.cpp | 2 +- source/backend/plugin/VstPlugin.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/backend/plugin/BridgePlugin.cpp b/source/backend/plugin/BridgePlugin.cpp index 42ebe6c16..e0e7bf4e7 100644 --- a/source/backend/plugin/BridgePlugin.cpp +++ b/source/backend/plugin/BridgePlugin.cpp @@ -773,7 +773,7 @@ public: } else { - value = kData->param.ranges[i].unnormalizeValue(ctrlEvent.value); + value = kData->param.ranges[k].unnormalizeValue(ctrlEvent.value); if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) value = std::rint(value); diff --git a/source/backend/plugin/DssiPlugin.cpp b/source/backend/plugin/DssiPlugin.cpp index 918348d25..b476de1f7 100644 --- a/source/backend/plugin/DssiPlugin.cpp +++ b/source/backend/plugin/DssiPlugin.cpp @@ -1192,7 +1192,7 @@ public: } else { - value = kData->param.ranges[i].unnormalizeValue(ctrlEvent.value); + value = kData->param.ranges[k].unnormalizeValue(ctrlEvent.value); if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) value = std::rint(value); diff --git a/source/backend/plugin/FluidSynthPlugin.cpp b/source/backend/plugin/FluidSynthPlugin.cpp index 7b42dc848..1cbb8a996 100644 --- a/source/backend/plugin/FluidSynthPlugin.cpp +++ b/source/backend/plugin/FluidSynthPlugin.cpp @@ -1192,7 +1192,7 @@ public: } else { - value = kData->param.ranges[i].unnormalizeValue(ctrlEvent.value); + value = kData->param.ranges[k].unnormalizeValue(ctrlEvent.value); if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) value = std::rint(value); diff --git a/source/backend/plugin/LadspaPlugin.cpp b/source/backend/plugin/LadspaPlugin.cpp index ea965c917..886d176b4 100644 --- a/source/backend/plugin/LadspaPlugin.cpp +++ b/source/backend/plugin/LadspaPlugin.cpp @@ -998,7 +998,7 @@ public: } else { - value = kData->param.ranges[i].unnormalizeValue(ctrlEvent.value); + value = kData->param.ranges[k].unnormalizeValue(ctrlEvent.value); if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) value = std::rint(value); diff --git a/source/backend/plugin/LinuxSamplerPlugin.cpp b/source/backend/plugin/LinuxSamplerPlugin.cpp index 157071f18..2bd5a13f1 100644 --- a/source/backend/plugin/LinuxSamplerPlugin.cpp +++ b/source/backend/plugin/LinuxSamplerPlugin.cpp @@ -694,7 +694,7 @@ public: } else { - value = kData->param.ranges[i].unnormalizeValue(ctrlEvent.value); + value = kData->param.ranges[k].unnormalizeValue(ctrlEvent.value); if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) value = std::rint(value); diff --git a/source/backend/plugin/Lv2Plugin.cpp b/source/backend/plugin/Lv2Plugin.cpp index 45113d50f..4f1697821 100644 --- a/source/backend/plugin/Lv2Plugin.cpp +++ b/source/backend/plugin/Lv2Plugin.cpp @@ -2772,7 +2772,7 @@ public: } else { - value = kData->param.ranges[i].unnormalizeValue(ctrlEvent.value); + value = kData->param.ranges[k].unnormalizeValue(ctrlEvent.value); if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) value = std::rint(value); diff --git a/source/backend/plugin/NativePlugin.cpp b/source/backend/plugin/NativePlugin.cpp index 0ae7f37d9..ef66e1643 100644 --- a/source/backend/plugin/NativePlugin.cpp +++ b/source/backend/plugin/NativePlugin.cpp @@ -1506,7 +1506,7 @@ public: } else { - value = kData->param.ranges[i].unnormalizeValue(ctrlEvent.value); + value = kData->param.ranges[k].unnormalizeValue(ctrlEvent.value); if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) value = std::rint(value); diff --git a/source/backend/plugin/VstPlugin.cpp b/source/backend/plugin/VstPlugin.cpp index 402b41a85..5790c083a 100644 --- a/source/backend/plugin/VstPlugin.cpp +++ b/source/backend/plugin/VstPlugin.cpp @@ -1272,7 +1272,7 @@ public: } else { - value = kData->param.ranges[i].unnormalizeValue(ctrlEvent.value); + value = kData->param.ranges[k].unnormalizeValue(ctrlEvent.value); if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) value = std::rint(value);