diff options
author | Carl Hetherington <carl@carlh.net> | 2010-05-25 16:40:35 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-05-25 16:40:35 +0000 |
commit | 2881a495ef8aa020a86ee761cac7a3ba74bcfc58 (patch) | |
tree | d54fb828450c1edcc8c768776f648fbdab68eb6e /gtk2_ardour/automation_streamview.cc | |
parent | a57b9cdd99b47fde8bfa265c0f72a380bb5cbb6f (diff) |
Make discrete mode work for MIDI automation views. Fixes #3178.
git-svn-id: svn://localhost/ardour2/branches/3.0@7159 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_streamview.cc')
-rw-r--r-- | gtk2_ardour/automation_streamview.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index 3eeb3bd6eb..fad14006b2 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -225,4 +225,14 @@ AutomationStreamView::has_automation () const return false; } - +void +AutomationStreamView::set_interpolation (AutomationList::InterpolationStyle s) +{ + for (list<RegionView*>::iterator i = region_views.begin(); i != region_views.end(); ++i) { + AutomationRegionView* arv = dynamic_cast<AutomationRegionView*> (*i); + assert (arv); + if (arv->line()) { + arv->line()->set_interpolation (s); + } + } +} |