@@ -773,7 +773,7 @@ public: | |||||
} | } | ||||
else | 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) | if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) | ||||
value = std::rint(value); | value = std::rint(value); | ||||
@@ -1192,7 +1192,7 @@ public: | |||||
} | } | ||||
else | 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) | if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) | ||||
value = std::rint(value); | value = std::rint(value); | ||||
@@ -1192,7 +1192,7 @@ public: | |||||
} | } | ||||
else | 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) | if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) | ||||
value = std::rint(value); | value = std::rint(value); | ||||
@@ -998,7 +998,7 @@ public: | |||||
} | } | ||||
else | 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) | if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) | ||||
value = std::rint(value); | value = std::rint(value); | ||||
@@ -694,7 +694,7 @@ public: | |||||
} | } | ||||
else | 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) | if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) | ||||
value = std::rint(value); | value = std::rint(value); | ||||
@@ -2772,7 +2772,7 @@ public: | |||||
} | } | ||||
else | 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) | if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) | ||||
value = std::rint(value); | value = std::rint(value); | ||||
@@ -1506,7 +1506,7 @@ public: | |||||
} | } | ||||
else | 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) | if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) | ||||
value = std::rint(value); | value = std::rint(value); | ||||
@@ -1272,7 +1272,7 @@ public: | |||||
} | } | ||||
else | 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) | if (kData->param.data[k].hints & PARAMETER_IS_INTEGER) | ||||
value = std::rint(value); | value = std::rint(value); | ||||