Browse Source

fix incorrect base conversion for midi CC numbers

Fixes #1088
tags/v2.2.0-RC1
Geoffrey McRae Filipe Coelho <falktx@falktx.com> 4 years ago
parent
commit
edb216fd50
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/frontend/carla_widgets.py

+ 2
- 2
source/frontend/carla_widgets.py View File

@@ -388,7 +388,7 @@ class PluginParameter(QWidget):
actCCs.append(action)

if self.fMappedCtrl >= 0 and self.fMappedCtrl <= MAX_MIDI_CC_LIST_ITEM:
ccx = int(cc.split(" [", 1)[0], 16)
ccx = int(cc.split(" [", 1)[0], 10)

if ccx > self.fMappedCtrl and not inlist:
inlist = True
@@ -484,7 +484,7 @@ class PluginParameter(QWidget):
elif actSel == actCV:
ctrl = CONTROL_VALUE_CV
elif actSel in actCCs:
ctrl = int(actSel.text().split(" ", 1)[0].replace("&",""), 16)
ctrl = int(actSel.text().split(" ", 1)[0].replace("&",""), 10)
elif actSel == actCustomCC:
ctrl, ok = QInputDialog.getInt(self,
self.tr("Custom CC"),


Loading…
Cancel
Save