diff options
author | nick_m <mainsbridge@gmail.com> | 2015-10-03 05:08:26 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-10-20 00:53:28 +1100 |
commit | ffed94d89bbc279561e8d670b4aec1a068d7e9a9 (patch) | |
tree | 8ef84f10f394f99c6052e6ddc0efc0e20c357014 /libs/ardour/automatable.cc | |
parent | 16480001082168a25af12239bb43baa7991a99c0 (diff) |
Automation - more toggled controller twiddling.
Diffstat (limited to 'libs/ardour/automatable.cc')
-rw-r--r-- | libs/ardour/automatable.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index cfe2d7a853..0fb048b9ef 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -397,17 +397,19 @@ Automatable::transport_stopped (framepos_t now) const bool list_did_write = !l->in_new_write_pass (); l->stop_touch (true, now); + if (list_did_write) { c->commit_transaction (); } - l->write_pass_finished (now, Config->get_automation_thinning_factor()); - if (l->automation_state() == Write) { + l->write_pass_finished (now, Config->get_automation_thinning_factor ()); + + if (l->automation_state () == Write) { l->set_automation_state (Touch); } - if (l->automation_playback()) { - c->set_value(c->list()->eval(now)); + if (l->automation_playback ()) { + c->set_value (c->list ()->eval (now)); } } } |