diff options
author | nick_m <mainsbridge@gmail.com> | 2015-06-15 16:35:19 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-06-17 09:54:22 +1000 |
commit | 15819f0896795b269811805546ea7621cb9ca213 (patch) | |
tree | 1422537a621361ae762abae1ceeb83ce33979e4b /gtk2_ardour/automation_time_axis.cc | |
parent | 7cb9dbb8af5c4bd957067816d304282fa5120844 (diff) |
Automation -use editor_add in gui, record straight lines with fewer points.
- don't keep setting/unsetting write pass when transport frame
remains the same (think larger jack buffer sizes)
- insert guards are now 64 frames after when.
- refactor previous approach.
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 6d3a506cfa..d5276e0cc5 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -644,10 +644,10 @@ AutomationTimeAxisView::add_automation_event (GdkEvent* event, framepos_t when, _editor.begin_reversible_command (_("add automation event")); XMLNode& before = list->get_state(); - list->add (when, y, with_guard_points); + list->editor_add (when, y, with_guard_points); XMLNode& after = list->get_state(); - _session->add_command (new MementoCommand<ARDOUR::AutomationList> (*list, &before, &after)); + _session->add_command (new MementoCommand<ARDOUR::AutomationList> (*list.get (), &before, &after)); _editor.commit_reversible_command (); _session->set_dirty (); } |