Signed-off-by: falkTX <falktx@falktx.com>tags/v2.1-rc1
@@ -628,7 +628,7 @@ public: | |||||
event.channel = kEngineEventNonMidiChannel; | event.channel = kEngineEventNonMidiChannel; | ||||
event.ctrl.type = kEngineControlEventTypeParameter; | event.ctrl.type = kEngineControlEventTypeParameter; | ||||
event.ctrl.param = static_cast<uint16_t>(i); | |||||
event.ctrl.param = static_cast<uint16_t>(ecv.indexOffset); | |||||
event.ctrl.value = carla_fixedValue(0.0f, 1.0f, (v - min) / (max - min)); | event.ctrl.value = carla_fixedValue(0.0f, 1.0f, (v - min) / (max - min)); | ||||
} | } | ||||
@@ -469,7 +469,7 @@ void CarlaEngineCVSourcePorts::initPortBuffers(const float* const* const buffers | |||||
event.channel = kEngineEventNonMidiChannel; | event.channel = kEngineEventNonMidiChannel; | ||||
event.ctrl.type = kEngineControlEventTypeParameter; | event.ctrl.type = kEngineControlEventTypeParameter; | ||||
event.ctrl.param = static_cast<uint16_t>(i); | |||||
event.ctrl.param = static_cast<uint16_t>(ecv.indexOffset); | |||||
event.ctrl.value = carla_fixedValue(0.0f, 1.0f, (v - min) / (max - min)); | event.ctrl.value = carla_fixedValue(0.0f, 1.0f, (v - min) / (max - min)); | ||||
} | } | ||||
@@ -426,10 +426,12 @@ class PluginParameter(QWidget): | |||||
action.setCheckable(True) | action.setCheckable(True) | ||||
action.setChecked(True) | action.setChecked(True) | ||||
menu.addSection("Range") | |||||
actRangeMinimum = menu.addAction(self.tr("Set minimum... (%g)" % self.fMappedMinimum)) | |||||
actRangeMaximum = menu.addAction(self.tr("Set maximum... (%g)" % self.fMappedMaximum)) | |||||
if self.fMappedCtrl != CONTROL_VALUE_NONE: | |||||
menu.addSection("Range") | |||||
actRangeMinimum = menu.addAction(self.tr("Set minimum... (%g)" % self.fMappedMinimum)) | |||||
actRangeMaximum = menu.addAction(self.tr("Set maximum... (%g)" % self.fMappedMaximum)) | |||||
else: | |||||
actRangeMinimum = actRangeMaximum = None | |||||
actSel = menu.exec_(QCursor.pos()) | actSel = menu.exec_(QCursor.pos()) | ||||