mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Make Active apply to the selection.
git-svn-id: svn://localhost/ardour2/branches/3.0@9089 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
92a5e4da48
commit
8f45604f27
9 changed files with 87 additions and 63 deletions
|
|
@ -820,31 +820,39 @@ MidiTimeAxisView::update_range()
|
|||
}
|
||||
|
||||
void
|
||||
MidiTimeAxisView::show_all_automation ()
|
||||
MidiTimeAxisView::show_all_automation (bool apply_to_selection)
|
||||
{
|
||||
if (midi_track()) {
|
||||
const set<Evoral::Parameter> params = midi_track()->midi_playlist()->contained_automation();
|
||||
|
||||
for (set<Evoral::Parameter>::const_iterator i = params.begin(); i != params.end(); ++i) {
|
||||
create_automation_child(*i, true);
|
||||
if (apply_to_selection) {
|
||||
_editor.get_selection().tracks.foreach_midi_time_axis (boost::bind (&MidiTimeAxisView::show_all_automation, _1, false));
|
||||
} else {
|
||||
if (midi_track()) {
|
||||
const set<Evoral::Parameter> params = midi_track()->midi_playlist()->contained_automation();
|
||||
|
||||
for (set<Evoral::Parameter>::const_iterator i = params.begin(); i != params.end(); ++i) {
|
||||
create_automation_child(*i, true);
|
||||
}
|
||||
}
|
||||
|
||||
RouteTimeAxisView::show_all_automation ();
|
||||
}
|
||||
|
||||
RouteTimeAxisView::show_all_automation ();
|
||||
}
|
||||
|
||||
void
|
||||
MidiTimeAxisView::show_existing_automation ()
|
||||
MidiTimeAxisView::show_existing_automation (bool apply_to_selection)
|
||||
{
|
||||
if (midi_track()) {
|
||||
const set<Evoral::Parameter> params = midi_track()->midi_playlist()->contained_automation();
|
||||
|
||||
for (set<Evoral::Parameter>::const_iterator i = params.begin(); i != params.end(); ++i) {
|
||||
create_automation_child(*i, true);
|
||||
if (apply_to_selection) {
|
||||
_editor.get_selection().tracks.foreach_midi_time_axis (boost::bind (&MidiTimeAxisView::show_existing_automation, _1, false));
|
||||
} else {
|
||||
if (midi_track()) {
|
||||
const set<Evoral::Parameter> params = midi_track()->midi_playlist()->contained_automation();
|
||||
|
||||
for (set<Evoral::Parameter>::const_iterator i = params.begin(); i != params.end(); ++i) {
|
||||
create_automation_child(*i, true);
|
||||
}
|
||||
}
|
||||
|
||||
RouteTimeAxisView::show_existing_automation ();
|
||||
}
|
||||
|
||||
RouteTimeAxisView::show_existing_automation ();
|
||||
}
|
||||
|
||||
/** Create an automation track for the given parameter (pitch bend, channel pressure).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue