const Evoral::Parameter& parameter,
const ParameterDescriptor& desc,
boost::shared_ptr<ARDOUR::AutomationList> l=boost::shared_ptr<ARDOUR::AutomationList>(),
- const std::string& name="");
+ const std::string& name="",
+ PBD::Controllable::Flag flags=PBD::Controllable::Flag (0)
+ );
~AutomationControl ();
{
public:
SlavableAutomationControl(ARDOUR::Session&,
- const Evoral::Parameter& parameter,
- const ParameterDescriptor& desc,
- boost::shared_ptr<ARDOUR::AutomationList> l=boost::shared_ptr<ARDOUR::AutomationList>(),
- const std::string& name="");
+ const Evoral::Parameter& parameter,
+ const ParameterDescriptor& desc,
+ boost::shared_ptr<ARDOUR::AutomationList> l=boost::shared_ptr<ARDOUR::AutomationList>(),
+ const std::string& name="",
+ PBD::Controllable::Flag flags=PBD::Controllable::Flag (0)
+ );
double get_value () const;
const Evoral::Parameter& parameter,
const ParameterDescriptor& desc,
boost::shared_ptr<ARDOUR::AutomationList> list,
- const string& name)
- : Controllable (name.empty() ? EventTypeMap::instance().to_symbol(parameter) : name)
+ const string& name,
+ Controllable::Flag flags)
+
+ : Controllable (name.empty() ? EventTypeMap::instance().to_symbol(parameter) : name, flags)
, Evoral::Control(parameter, desc, list)
, _session(session)
, _desc(desc)
Control::set_double (value, _session.transport_frame(), to_list);
//AutomationType at = (AutomationType) _parameter.type();
- //std::cerr << "++++ Changed (" << enum_2_string (at) << ", " << enum_2_string (gcd) << ") = " << value
+ //std::cerr << "++++ Changed (" << enum_2_string (at) << ", " << enum_2_string (gcd) << ") = " << value
//<< " (was " << old_value << ") @ " << this << std::endl;
Changed (true, gcd);
GainControl::GainControl (Session& session, const Evoral::Parameter ¶m, boost::shared_ptr<AutomationList> al)
: SlavableAutomationControl (session, param, ParameterDescriptor(param),
al ? al : boost::shared_ptr<AutomationList> (new AutomationList (param)),
- param.type() == GainAutomation ? X_("gaincontrol") : X_("trimcontrol")) {
-
+ param.type() == GainAutomation ? X_("gaincontrol") : X_("trimcontrol"),
+ Controllable::GainLike)
+{
alist()->reset_default (1.0);
lower_db = accurate_coefficient_to_dB (_desc.lower);
const Evoral::Parameter& parameter,
const ParameterDescriptor& desc,
boost::shared_ptr<ARDOUR::AutomationList> l,
- const std::string& name)
- : AutomationControl (s, parameter, desc, l, name)
+ const std::string& name,
+ Controllable::Flag flags)
+ : AutomationControl (s, parameter, desc, l, name, flags)
{
}