mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
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
This commit is contained in:
parent
a57b9cdd99
commit
2881a495ef
3 changed files with 20 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue