From 9ec031cfce1d3eba9eb5e9d96d6ea3d4b1b256b7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 21 Dec 2018 17:32:46 +0100 Subject: [PATCH] Remove duplicate automation shift Amp, Trim are now processors, moving processor-automation takes care of gain automation. --- libs/ardour/route.cc | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 9a2559e240..5c0f64fd2c 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4160,28 +4160,6 @@ Route::protect_automation () void Route::shift (samplepos_t pos, samplecnt_t samples) { - /* gain automation */ - { - boost::shared_ptr gc = _amp->gain_control(); - - XMLNode &before = gc->alist()->get_state (); - gc->alist()->shift (pos, samples); - XMLNode &after = gc->alist()->get_state (); - _session.add_command (new MementoCommand (*gc->alist().get(), &before, &after)); - } - - /* gain automation */ - { - boost::shared_ptr gc = _trim->gain_control(); - - XMLNode &before = gc->alist()->get_state (); - gc->alist()->shift (pos, samples); - XMLNode &after = gc->alist()->get_state (); - _session.add_command (new MementoCommand (*gc->alist().get(), &before, &after)); - } - - // TODO mute automation ?? - /* pan automation */ if (_pannable) { ControlSet::Controls& c (_pannable->controls()); @@ -4198,7 +4176,9 @@ Route::shift (samplepos_t pos, samplecnt_t samples) } } - /* redirect automation */ + /* TODO mute automation, MuteControl */ + + /* processor automation (incl. gain, trim,..) */ { Glib::Threads::RWLock::ReaderLock lm (_processor_lock); for (ProcessorList::iterator i = _processors.begin (); i != _processors.end (); ++i) {