mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
generic MIDI: extend select function API and make argument be bank-relative, always
This commit is contained in:
parent
eb4ac77a7b
commit
75fe2ce095
4 changed files with 83 additions and 6 deletions
|
|
@ -1663,3 +1663,32 @@ GenericMidiControlProtocol::midi_input_handler (Glib::IOCondition ioc, boost::we
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
GenericMidiControlProtocol::add_rid_to_selection (int rid)
|
||||
{
|
||||
int id = rid + (_current_bank * _bank_size);
|
||||
ControlProtocol::add_rid_to_selection (id);
|
||||
}
|
||||
|
||||
void
|
||||
GenericMidiControlProtocol::set_rid_selection (int rid)
|
||||
{
|
||||
int id = rid + (_current_bank * _bank_size);
|
||||
ControlProtocol::set_rid_selection (id);
|
||||
}
|
||||
|
||||
void
|
||||
GenericMidiControlProtocol::toggle_rid_selection (int rid)
|
||||
{
|
||||
int id = rid + (_current_bank * _bank_size);
|
||||
ControlProtocol::toggle_rid_selection (id);
|
||||
}
|
||||
|
||||
void
|
||||
GenericMidiControlProtocol::remove_rid_from_selection (int rid)
|
||||
{
|
||||
int id = rid + (_current_bank * _bank_size);
|
||||
ControlProtocol::remove_rid_from_selection (id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue