diff options
author | David Robillard <d@drobilla.net> | 2014-11-15 02:58:39 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-15 02:58:39 -0500 |
commit | de1ebcc1490e083c18af7c6cccaf956a30038161 (patch) | |
tree | 5d00a81f3a7d3affb352ebd96cb4b0410461f355 /gtk2_ardour/automation_region_view.cc | |
parent | 333c776e0ea5d1380daaa919969cc2f3722fc8eb (diff) |
Fix entering/editing MIDI region "automation" (controllers).
Two issues:
1) AutomationRegionView not receiving events (CC breakage).
2) Entered values must be rounded to integer for MIDI controllers. This should
be done more generically with ParameterDescriptor for all controls (also
supporting boolean toggles and such), once ParameterDescriptor becomes more
pervasive and takes over Evoral::Parameter, but this will do for now.
Diffstat (limited to 'gtk2_ardour/automation_region_view.cc')
-rw-r--r-- | gtk2_ardour/automation_region_view.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_region_view.cc b/gtk2_ardour/automation_region_view.cc index e088f7c59f..0415e8c55e 100644 --- a/gtk2_ardour/automation_region_view.cc +++ b/gtk2_ardour/automation_region_view.cc @@ -54,7 +54,6 @@ AutomationRegionView::AutomationRegionView (ArdourCanvas::Container* create_line(list); } - group->Event.connect (sigc::mem_fun (this, &AutomationRegionView::canvas_event)); group->raise_to_top(); } @@ -96,7 +95,7 @@ AutomationRegionView::create_line (boost::shared_ptr<ARDOUR::AutomationList> lis } bool -AutomationRegionView::canvas_event (GdkEvent* ev) +AutomationRegionView::canvas_group_event (GdkEvent* ev) { PublicEditor& e = trackview.editor (); |