Fix entering/editing MIDI region "automation" (controllers).
authorDavid Robillard <d@drobilla.net>
Sat, 15 Nov 2014 07:58:39 +0000 (02:58 -0500)
committerDavid Robillard <d@drobilla.net>
Sat, 15 Nov 2014 07:58:39 +0000 (02:58 -0500)
commitde1ebcc1490e083c18af7c6cccaf956a30038161
tree5d00a81f3a7d3affb352ebd96cb4b0410461f355
parent333c776e0ea5d1380daaa919969cc2f3722fc8eb
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.
gtk2_ardour/automation_line.cc
gtk2_ardour/automation_region_view.cc
gtk2_ardour/automation_region_view.h