mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Implement invert selection for MIDI notes (#4087).
git-svn-id: svn://localhost/ardour2/branches/3.0@10198 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
bbcb8125b7
commit
1567d362ad
3 changed files with 24 additions and 2 deletions
|
|
@ -2027,6 +2027,18 @@ MidiRegionView::select_all_notes ()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
MidiRegionView::invert_selection ()
|
||||
{
|
||||
for (Events::iterator i = _events.begin(); i != _events.end(); ++i) {
|
||||
if ((*i)->selected()) {
|
||||
remove_from_selection(*i);
|
||||
} else {
|
||||
add_to_selection (*i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
MidiRegionView::select_matching_notes (uint8_t notenum, uint16_t channel_mask, bool add, bool extend)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue