summaryrefslogtreecommitdiff
path: root/gtk2_ardour/gain_automation_time_axis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/gain_automation_time_axis.cc')
-rw-r--r--gtk2_ardour/gain_automation_time_axis.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/gain_automation_time_axis.cc b/gtk2_ardour/gain_automation_time_axis.cc
index 9890854d4b..509c941555 100644
--- a/gtk2_ardour/gain_automation_time_axis.cc
+++ b/gtk2_ardour/gain_automation_time_axis.cc
@@ -17,7 +17,7 @@
*/
-#include <ardour/curve.h>
+#include <ardour/automation_event.h>
#include <ardour/route.h>
#include <pbd/memento_command.h>
@@ -33,11 +33,11 @@ using namespace Gtk;
GainAutomationTimeAxisView::GainAutomationTimeAxisView (Session& s, boost::shared_ptr<Route> r,
PublicEditor& e, TimeAxisView& parent,
- ArdourCanvas::Canvas& canvas, const string & n, ARDOUR::Curve& c)
+ ArdourCanvas::Canvas& canvas, const string & n, ARDOUR::AutomationList& l)
: AxisView (s),
AutomationTimeAxisView (s, r, e, parent, canvas, n, X_("gain"), ""),
- curve (c)
+ list (l)
{
}
@@ -62,10 +62,10 @@ GainAutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* item, GdkE
lines.front()->view_to_model_y (y);
_session.begin_reversible_command (_("add gain automation event"));
- XMLNode& before = curve.get_state();
- curve.add (when, y);
- XMLNode& after = curve.get_state();
- _session.commit_reversible_command (new MementoCommand<ARDOUR::Curve>(curve, &before, &after));
+ XMLNode& before = list.get_state();
+ list.add (when, y);
+ XMLNode& after = list.get_state();
+ _session.commit_reversible_command (new MementoCommand<ARDOUR::AutomationList>(list, &before, &after));
_session.set_dirty ();
}
@@ -73,6 +73,6 @@ void
GainAutomationTimeAxisView::set_automation_state (AutoState state)
{
if (!ignore_state_request) {
- route->set_gain_automation_state (state);
+ route->set_parameter_automation_state (ParamID(GainAutomation), state);
}
}