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
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,6 +56,8 @@ class AutomationStreamView : public StreamView
|
|||
|
||||
bool has_automation () const;
|
||||
|
||||
void set_interpolation (ARDOUR::AutomationList::InterpolationStyle);
|
||||
|
||||
private:
|
||||
void setup_rec_box ();
|
||||
|
||||
|
|
|
@ -364,6 +364,10 @@ AutomationTimeAxisView::interpolation_changed ()
|
|||
if (_line) {
|
||||
_line->set_interpolation(style);
|
||||
}
|
||||
|
||||
if (_view) {
|
||||
_view->set_interpolation (style);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -373,6 +377,9 @@ AutomationTimeAxisView::set_interpolation (AutomationList::InterpolationStyle st
|
|||
if (_line) {
|
||||
_line->set_interpolation(style);
|
||||
}
|
||||
if (_view) {
|
||||
_view->set_interpolation (style);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue