diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-25 21:24:58 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-25 21:24:58 +0200 |
commit | 517467f29747acde8baa6f42ed064e2ed58f5ea5 (patch) | |
tree | ef41b57cd66aaca1c7b639a2c50ee3463879c7b9 /libs/ardour/automatable.cc | |
parent | 1e5be9ebfd35f6b603368f394e7f2448b2c2e56d (diff) |
prepare trim automation
Diffstat (limited to 'libs/ardour/automatable.cc')
-rw-r--r-- | libs/ardour/automatable.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/automatable.cc b/libs/ardour/automatable.cc index 310592ae4b..9a37b1d590 100644 --- a/libs/ardour/automatable.cc +++ b/libs/ardour/automatable.cc @@ -163,6 +163,8 @@ Automatable::describe_parameter (Evoral::Parameter param) if (param == Evoral::Parameter(GainAutomation)) { return _("Fader"); + } else if (param.type() == TrimAutomation) { + return _("Trim"); } else if (param.type() == MuteAutomation) { return _("Mute"); } else if (param.type() == MidiCCAutomation) { @@ -441,6 +443,13 @@ Automatable::control_factory(const Evoral::Parameter& param) } else { warning << "GainAutomation for non-Amp" << endl; } + } else if (param.type() == TrimAutomation) { + Amp* amp = dynamic_cast<Amp*>(this); + if (amp) { + control = new Amp::GainControl(X_("trimcontrol"), _a_session, amp, param); + } else { + warning << "TrimAutomation for non-Amp" << endl; + } } else if (param.type() == PanAzimuthAutomation || param.type() == PanWidthAutomation || param.type() == PanElevationAutomation) { Pannable* pannable = dynamic_cast<Pannable*>(this); if (pannable) { |