diff options
Diffstat (limited to 'muse2/muse/widgets/midi_audio_control.cpp')
-rw-r--r-- | muse2/muse/widgets/midi_audio_control.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/muse2/muse/widgets/midi_audio_control.cpp b/muse2/muse/widgets/midi_audio_control.cpp index 78c8de3c..17d724ac 100644 --- a/muse2/muse/widgets/midi_audio_control.cpp +++ b/muse2/muse/widgets/midi_audio_control.cpp @@ -88,7 +88,7 @@ void MidiAudioControl::heartbeat() if(MusEGlobal::midiLearnCtrl != -1) { - int type = MusECore::midiControllerType(MusEGlobal::midiLearnCtrl); + MusECore::MidiController::ControllerType type = MusECore::midiControllerType(MusEGlobal::midiLearnCtrl); if(type < controlTypeComboBox->count() && type != controlTypeComboBox->currentIndex()) { controlTypeComboBox->blockSignals(true); @@ -223,7 +223,7 @@ void MidiAudioControl::ctrlTypeChanged(int idx) updateCtrlBoxes(); _ctrl = (ctrlHiSpinBox->value() << 8) + ctrlLoSpinBox->value(); - _ctrl = MusECore::midiCtrlTerms2Number(idx, _ctrl); + _ctrl = MusECore::midiCtrlTerms2Number(MusECore::MidiController::ControllerType(idx), _ctrl); resetLearn(); } @@ -233,7 +233,7 @@ void MidiAudioControl::ctrlHChanged() if(controlTypeComboBox->currentIndex() == -1) return; _ctrl = (ctrlHiSpinBox->value() << 8) + ctrlLoSpinBox->value(); - _ctrl = MusECore::midiCtrlTerms2Number(controlTypeComboBox->currentIndex(), _ctrl); + _ctrl = MusECore::midiCtrlTerms2Number(MusECore::MidiController::ControllerType(controlTypeComboBox->currentIndex()), _ctrl); resetLearn(); } @@ -243,7 +243,7 @@ void MidiAudioControl::ctrlLChanged() if(controlTypeComboBox->currentIndex() == -1) return; _ctrl = (ctrlHiSpinBox->value() << 8) + ctrlLoSpinBox->value(); - _ctrl = MusECore::midiCtrlTerms2Number(controlTypeComboBox->currentIndex(), _ctrl); + _ctrl = MusECore::midiCtrlTerms2Number(MusECore::MidiController::ControllerType(controlTypeComboBox->currentIndex()), _ctrl); resetLearn(); } |