diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-27 02:04:16 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-27 02:04:16 +0000 |
commit | 8000b39c8cbfdafbf806e04f9db7f82c81f92cae (patch) | |
tree | 495fbe4e9a3f0a4e7024704758497d34bfafbfa7 /gtk2_ardour/route_time_axis.cc | |
parent | aad157337c5db676fdb39f5faefbb764f500702a (diff) |
Create MIDI track gain automation tracks as non-region-based. Fix construction of MidiTimeAxisViews to use the same first_idle arrangement as AudioTimeAxisViews to prevent use of partially constructed objects.
git-svn-id: svn://localhost/ardour2/branches/3.0@7847 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index d4b67800bb..18ffce84ae 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -2382,3 +2382,23 @@ RouteTimeAxisView::automation_child_menu_item (Evoral::Parameter param) return 0; } + +void +RouteTimeAxisView::create_gain_automation_child (const Evoral::Parameter& param, bool show) +{ + boost::shared_ptr<AutomationControl> c = _route->gain_control(); + if (!c) { + error << "Route has no gain automation, unable to add automation track view." << endmsg; + return; + } + + gain_track.reset (new AutomationTimeAxisView (_session, + _route, _route->amp(), c, + _editor, + *this, + false, + parent_canvas, + _route->amp()->describe_parameter(param))); + + add_automation_child (Evoral::Parameter(GainAutomation), gain_track, show); +} |