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:
parent
31f45a488a
commit
a2656d6612
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user