diff --git a/midi2cv/ui/part_menu.cc b/midi2cv/ui/part_menu.cc index 946df11..948fb48 100644 --- a/midi2cv/ui/part_menu.cc +++ b/midi2cv/ui/part_menu.cc @@ -3,13 +3,18 @@ #include "../menu/menu_items.h" #include -static const char* kVoiceDetailStrings[] = {"S", "M", "L", "XL"}; +static const char* kVoiceDetailStrings[] = { "S", "M", "L", "XL" }; +static const char* kMidiChannelStrings[] = { "omni", "1", "2", "3", "4", "5", "6", + "7", "8", "9", "10", "11", "12", "13", + "14", "15", "16" }; +static const char* kMidiInputStrings[] = { "omni", "usb", "midi" }; PartMenu::PartMenu() : item_voice_count("voice count", 1, 1, 4, 1) , item_voice_detail("voice detail", 0, kVoiceDetailStrings, 4) , item_midi_filter_enabled("MIDI filter", 1, "on", "off") - , item_midi_channel("MIDI channel", 0, 0, 16, 1) + , item_midi_channel("MIDI channel", 0, kMidiChannelStrings, 17) + , item_midi_input("MIDI input", 0, kMidiInputStrings, 3) , item_midi_lowest_note("MIDI lowest", 0) , item_midi_highest_note("MIDI highest", 127) { @@ -17,6 +22,7 @@ PartMenu::PartMenu() this->menu.add_item(&this->item_voice_detail); this->menu.add_item(&this->item_midi_filter_enabled); this->menu.add_item(&this->item_midi_channel); + this->menu.add_item(&this->item_midi_input); this->menu.add_item(&this->item_midi_lowest_note); this->menu.add_item(&this->item_midi_highest_note); } diff --git a/midi2cv/ui/part_menu.h b/midi2cv/ui/part_menu.h index 3e6fa2a..ff5eb6f 100644 --- a/midi2cv/ui/part_menu.h +++ b/midi2cv/ui/part_menu.h @@ -20,7 +20,8 @@ class PartMenu { UIntMenuItem item_voice_count; StringListMenuItem item_voice_detail; BoolMenuItem item_midi_filter_enabled; - UIntMenuItem item_midi_channel; + StringListMenuItem item_midi_channel; + StringListMenuItem item_midi_input; MidiNoteMenuItem item_midi_lowest_note; MidiNoteMenuItem item_midi_highest_note; };