From dc66a963bbef0132a99c4aba095ace119870c605 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 13 Jan 2021 15:13:29 -0700 Subject: [PATCH] use Automatable's time_domain() to set time_domain() for some controls at creation --- libs/ardour/automatable.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index edc60a6481..d5697b47ba 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -574,7 +574,7 @@ Automatable::control_factory(const Evoral::Parameter& param) } else if (param.type() == RecEnableAutomation) { Recordable* re = dynamic_cast (this); if (re) { - control = new RecordEnableControl (_a_session, X_("recenable"), *re); + control = new RecordEnableControl (_a_session, X_("recenable"), *re, time_domain()); } } else if (param.type() == MonitoringAutomation) { Monitorable* m = dynamic_cast(this); @@ -595,8 +595,7 @@ Automatable::control_factory(const Evoral::Parameter& param) } if (make_list && !list) { -#warning NUTEMPO what time domain to use here? - list = boost::shared_ptr(new AutomationList(param, desc, Temporal::AudioTime)); + list = boost::shared_ptr(new AutomationList(param, desc, time_domain())); } if (!control) {