diff options
author | David Robillard <d@drobilla.net> | 2007-06-27 15:51:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-27 15:51:50 +0000 |
commit | d7bd270aa10b3a8669223debe4c1b572ae876e2b (patch) | |
tree | db9ad92cb5096a54a9d7e91873fe73530ceaf21b /gtk2_ardour/editor_canvas_events.cc | |
parent | d7afe01c307e35719dc1ee41c079f81f40f009df (diff) |
Big ol' automation refactor.
Things with automation parameters now inherit from Automatable, which handles serialization, fetching/adding/removing parameters, etc.
Use AutomationList everywhere instead of Curve, make Curve a member of AutomationList instead (towards other types of "Curve" needed for CC, among other things).
Work towards MIDI CC sending "automation" tracks.
git-svn-id: svn://localhost/ardour2/trunk@2069 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas_events.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas_events.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_canvas_events.cc b/gtk2_ardour/editor_canvas_events.cc index 40bef304c5..e1ed2d2fa1 100644 --- a/gtk2_ardour/editor_canvas_events.cc +++ b/gtk2_ardour/editor_canvas_events.cc @@ -35,6 +35,7 @@ #include "region_gain_line.h" #include "automation_gain_line.h" #include "automation_pan_line.h" +#include "automation_midi_cc_line.h" #include "automation_time_axis.h" #include "redirect_automation_line.h" #include "canvas_impl.h" @@ -592,6 +593,8 @@ Editor::canvas_control_point_event (GdkEvent *event, ArdourCanvas::Item* item, C type = PanAutomationControlPointItem; } else if (dynamic_cast<RedirectAutomationLine*> (&cp->line) != 0) { type = RedirectAutomationControlPointItem; + } else if (dynamic_cast<AutomationMidiCCLine*> (&cp->line) != 0) { + type = MidiCCAutomationControlPointItem; } else { return false; } @@ -612,6 +615,8 @@ Editor::canvas_line_event (GdkEvent *event, ArdourCanvas::Item* item, Automation type = PanAutomationLineItem; } else if (dynamic_cast<RedirectAutomationLine*> (al) != 0) { type = RedirectAutomationLineItem; + } else if (dynamic_cast<AutomationMidiCCLine*> (al) != 0) { + type = MidiCCAutomationLineItem; } else { return false; } |