13
0

when the "draw channel" is set to auto, consider the midnam display channel

This has higher priority than the playback mask
This commit is contained in:
Paul Davis 2023-09-13 23:56:45 -06:00
parent 31f45a488a
commit a2656d6612

View File

@ -1856,6 +1856,16 @@ MidiTimeAxisView::get_preferred_midi_channel () const
return _editor.draw_channel();
}
if (_midnam_channel_selector.is_visible()) {
string chn = gui_property (X_("midnam-channel"));
if (!chn.empty()) {
int midnam_channel;
sscanf (chn.c_str(), "%*s %d", &midnam_channel);
midnam_channel--;
return midnam_channel;
}
}
uint16_t const chn_mask = midi_track()->get_playback_channel_mask();
int chn_cnt = 0;
uint8_t channel = 0;