mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
Fix up automation-follows-regions
git-svn-id: svn://localhost/ardour2/branches/3.0@5286 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
12949b390b
commit
df9654b8cc
1 changed files with 6 additions and 15 deletions
|
|
@ -428,21 +428,14 @@ Diskstream::playlist_ranges_moved (list< Evoral::RangeMove<nframes_t> > const &
|
||||||
}
|
}
|
||||||
|
|
||||||
list< Evoral::RangeMove<double> > movements;
|
list< Evoral::RangeMove<double> > movements;
|
||||||
|
|
||||||
for (list< Evoral::RangeMove<nframes_t> >::const_iterator i = movements_frames.begin();
|
for (list< Evoral::RangeMove<nframes_t> >::const_iterator i = movements_frames.begin();
|
||||||
i != movements_frames.end(); ++i) {
|
i != movements_frames.end();
|
||||||
|
++i) {
|
||||||
|
|
||||||
movements.push_back(Evoral::RangeMove<double>(i->from, i->length, i->to));
|
movements.push_back(Evoral::RangeMove<double>(i->from, i->length, i->to));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* move gain automation */
|
|
||||||
boost::shared_ptr<AutomationList> gain_alist = _route->gain_control()->alist();
|
|
||||||
XMLNode & before = gain_alist->get_state ();
|
|
||||||
gain_alist->move_ranges (movements);
|
|
||||||
_session.add_command (
|
|
||||||
new MementoCommand<AutomationList> (
|
|
||||||
*gain_alist.get(), &before, &gain_alist->get_state ()
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
/* move panner automation */
|
/* move panner automation */
|
||||||
boost::shared_ptr<Panner> p = _route->main_outs()->panner ();
|
boost::shared_ptr<Panner> p = _route->main_outs()->panner ();
|
||||||
if (p) {
|
if (p) {
|
||||||
|
|
@ -451,13 +444,11 @@ Diskstream::playlist_ranges_moved (list< Evoral::RangeMove<nframes_t> > const &
|
||||||
XMLNode & before = pan_alist->get_state ();
|
XMLNode & before = pan_alist->get_state ();
|
||||||
pan_alist->move_ranges (movements);
|
pan_alist->move_ranges (movements);
|
||||||
_session.add_command (new MementoCommand<AutomationList> (
|
_session.add_command (new MementoCommand<AutomationList> (
|
||||||
*pan_alist.get(), &before, &pan_alist->get_state ()));
|
*pan_alist.get(), &before, &pan_alist->get_state ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* move processor automation */
|
/* move processor automation */
|
||||||
/* XXX: ewww */
|
|
||||||
|
|
||||||
_route->foreach_processor (sigc::bind (sigc::mem_fun (*this, &Diskstream::move_processor_automation), movements_frames));
|
_route->foreach_processor (sigc::bind (sigc::mem_fun (*this, &Diskstream::move_processor_automation), movements_frames));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue