mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Display recorded controller data (fix show all/existing automation).
git-svn-id: svn://localhost/ardour2/branches/3.0@3779 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eec19ca7af
commit
e14187aadd
46 changed files with 460 additions and 375 deletions
|
|
@ -99,11 +99,13 @@ AutomationStreamView::add_region_view_internal (boost::shared_ptr<Region> region
|
|||
for (i = region_views.begin(); i != region_views.end(); ++i) {
|
||||
if ((*i)->region() == region) {
|
||||
|
||||
/* great. we already have a MidiRegionView for this Region. use it again. */
|
||||
/* great. we already have an AutomationRegionView for this Region. use it again. */
|
||||
AutomationRegionView* arv = dynamic_cast<AutomationRegionView*>(*i);;
|
||||
|
||||
arv->line()->set_list (list);
|
||||
(*i)->set_valid (true);
|
||||
(*i)->enable_display(wfd);
|
||||
display_region(dynamic_cast<AutomationRegionView*>(*i));
|
||||
display_region(arv);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -139,6 +141,17 @@ AutomationStreamView::display_region(AutomationRegionView* region_view)
|
|||
region_view->line().reset();
|
||||
}
|
||||
|
||||
void
|
||||
AutomationStreamView::set_automation_state (AutoState state)
|
||||
{
|
||||
std::list<RegionView *>::iterator i;
|
||||
for (i = region_views.begin(); i != region_views.end(); ++i) {
|
||||
boost::shared_ptr<AutomationLine> line = ((AutomationRegionView*)(*i))->line();
|
||||
if (line && line->the_list())
|
||||
line->the_list()->set_automation_state (state);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
AutomationStreamView::redisplay_diskstream ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue