mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
pan controls starts with its route's time domain
This commit is contained in:
parent
e72ce1317e
commit
ceba073065
3 changed files with 8 additions and 9 deletions
|
|
@ -37,12 +37,11 @@ class Pannable;
|
||||||
class LIBARDOUR_API PanControllable : public AutomationControl
|
class LIBARDOUR_API PanControllable : public AutomationControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
#warning NUTEMPO QUESTION what time domain shoudl this really use?
|
PanControllable (Session& s, std::string name, Pannable* o, Evoral::Parameter param, Temporal::TimeDomain td)
|
||||||
PanControllable (Session& s, std::string name, Pannable* o, Evoral::Parameter param)
|
|
||||||
: AutomationControl (s,
|
: AutomationControl (s,
|
||||||
param,
|
param,
|
||||||
ParameterDescriptor(param),
|
ParameterDescriptor(param),
|
||||||
boost::shared_ptr<AutomationList>(new AutomationList(param, Temporal::AudioTime)),
|
boost::shared_ptr<AutomationList>(new AutomationList(param, td)),
|
||||||
name)
|
name)
|
||||||
, owner (o)
|
, owner (o)
|
||||||
{}
|
{}
|
||||||
|
|
|
||||||
|
|
@ -567,7 +567,7 @@ Automatable::control_factory(const Evoral::Parameter& param)
|
||||||
} else if (param.type() == PanAzimuthAutomation || param.type() == PanWidthAutomation || param.type() == PanElevationAutomation) {
|
} else if (param.type() == PanAzimuthAutomation || param.type() == PanWidthAutomation || param.type() == PanElevationAutomation) {
|
||||||
Pannable* pannable = dynamic_cast<Pannable*>(this);
|
Pannable* pannable = dynamic_cast<Pannable*>(this);
|
||||||
if (pannable) {
|
if (pannable) {
|
||||||
control = new PanControllable (_a_session, describe_parameter (param), pannable, param);
|
control = new PanControllable (_a_session, describe_parameter (param), pannable, param, time_domain());
|
||||||
} else {
|
} else {
|
||||||
warning << "PanAutomation for non-Pannable" << endl;
|
warning << "PanAutomation for non-Pannable" << endl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,11 +42,11 @@ using namespace ARDOUR;
|
||||||
Pannable::Pannable (Session& s, Temporal::TimeDomain td)
|
Pannable::Pannable (Session& s, Temporal::TimeDomain td)
|
||||||
: Automatable (s, td)
|
: Automatable (s, td)
|
||||||
, SessionHandleRef (s)
|
, SessionHandleRef (s)
|
||||||
, pan_azimuth_control (new PanControllable (s, "", this, PanAzimuthAutomation))
|
, pan_azimuth_control (new PanControllable (s, "", this, PanAzimuthAutomation, td))
|
||||||
, pan_elevation_control (new PanControllable (s, "", this, PanElevationAutomation))
|
, pan_elevation_control (new PanControllable (s, "", this, PanElevationAutomation, td))
|
||||||
, pan_width_control (new PanControllable (s, "", this, PanWidthAutomation))
|
, pan_width_control (new PanControllable (s, "", this, PanWidthAutomation, td))
|
||||||
, pan_frontback_control (new PanControllable (s, "", this, PanFrontBackAutomation))
|
, pan_frontback_control (new PanControllable (s, "", this, PanFrontBackAutomation, td))
|
||||||
, pan_lfe_control (new PanControllable (s, "", this, PanLFEAutomation))
|
, pan_lfe_control (new PanControllable (s, "", this, PanLFEAutomation, td))
|
||||||
, _auto_state (Off)
|
, _auto_state (Off)
|
||||||
, _has_state (false)
|
, _has_state (false)
|
||||||
, _responding_to_control_auto_state_change (0)
|
, _responding_to_control_auto_state_change (0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue