From edb216fd50bf9d94da110d70b348a27ea1785432 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 18 Apr 2020 21:55:27 +1000 Subject: [PATCH] fix incorrect base conversion for midi CC numbers Fixes #1088 --- source/frontend/carla_widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/frontend/carla_widgets.py b/source/frontend/carla_widgets.py index 0489042f8..e8ba95b2a 100755 --- a/source/frontend/carla_widgets.py +++ b/source/frontend/carla_widgets.py @@ -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"),