-
- boost::shared_ptr<AutomationControl> c = _route->get_control (param);
-
- assert(c);
-
- boost::shared_ptr<AutomationTimeAxisView> track(new AutomationTimeAxisView (_session,
- _route, boost::shared_ptr<ARDOUR::Automatable>(), c,
- _editor,
- *this,
- true,
- parent_canvas,
- _route->describe_parameter(param)));
-
- add_automation_child (param, track, show);
+
+ if (param.type() == GainAutomation) {
+ create_gain_automation_child (param, show);
+ } else {
+
+ /* These controllers are region "automation", so we do not create
+ * an AutomationList/Line for the track */
+
+ boost::shared_ptr<AutomationControl> c = _route->get_control (param);
+ assert (c);
+
+ boost::shared_ptr<AutomationTimeAxisView> track(new AutomationTimeAxisView (_session,
+ _route, boost::shared_ptr<ARDOUR::Automatable>(), c,
+ _editor,
+ *this,
+ true,
+ parent_canvas,
+ _route->describe_parameter(param)));
+
+ add_automation_child (param, track, show);
+ }