mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +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;
|
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;
|
bool has_automation () const;
|
||||||
|
|
||||||
|
void set_interpolation (ARDOUR::AutomationList::InterpolationStyle);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setup_rec_box ();
|
void setup_rec_box ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -364,6 +364,10 @@ AutomationTimeAxisView::interpolation_changed ()
|
||||||
if (_line) {
|
if (_line) {
|
||||||
_line->set_interpolation(style);
|
_line->set_interpolation(style);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_view) {
|
||||||
|
_view->set_interpolation (style);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -373,6 +377,9 @@ AutomationTimeAxisView::set_interpolation (AutomationList::InterpolationStyle st
|
||||||
if (_line) {
|
if (_line) {
|
||||||
_line->set_interpolation(style);
|
_line->set_interpolation(style);
|
||||||
}
|
}
|
||||||
|
if (_view) {
|
||||||
|
_view->set_interpolation (style);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue