- Automatable(Session&, const std::string& name);
-
- virtual ~Automatable() {}
-
- // shorthand for gain, pan, etc
- inline boost::shared_ptr<AutomationControl>
- control(AutomationType type, bool create_if_missing=false) {
- return control(Parameter(type), create_if_missing);
- }
-
- virtual boost::shared_ptr<AutomationControl> control(Parameter id, bool create_if_missing=false);
- virtual boost::shared_ptr<const AutomationControl> control(Parameter id) const;
-
- boost::shared_ptr<AutomationControl> control_factory(boost::shared_ptr<AutomationList> list);
-
- typedef std::map<Parameter,boost::shared_ptr<AutomationControl> > Controls;
- Controls controls() { return _controls; }
-
- virtual void add_control(boost::shared_ptr<AutomationControl>);
-
- virtual void automation_snapshot(nframes_t now);
- virtual void transport_stopped(nframes_t now);
-
- virtual bool find_next_event(nframes_t start, nframes_t end, ControlEvent& ev) const;
-
- virtual string describe_parameter(Parameter param);
- virtual float default_parameter_value(Parameter param) { return 1.0f; }
-
- virtual void clear_automation();
-
- AutoState get_parameter_automation_state (Parameter param, bool lock = true);
- virtual void set_parameter_automation_state (Parameter param, AutoState);
-
- AutoStyle get_parameter_automation_style (Parameter param);
- void set_parameter_automation_style (Parameter param, AutoStyle);
+ Automatable(Session&);
+ Automatable (const Automatable& other);
+
+ virtual ~Automatable();
+
+ boost::shared_ptr<Evoral::Control>
+ control_factory(const Evoral::Parameter& id);
+
+ boost::shared_ptr<AutomationControl>
+ automation_control (const Evoral::Parameter& id, bool create_if_missing=false);
+
+ boost::shared_ptr<const AutomationControl>
+ automation_control (const Evoral::Parameter& id) const;
+
+ virtual void add_control(boost::shared_ptr<Evoral::Control>);
+ void clear_controls ();
+
+ virtual void transport_located (framepos_t now);
+ virtual void transport_stopped (framepos_t now);
+
+ virtual std::string describe_parameter(Evoral::Parameter param);
+ virtual std::string value_as_string (boost::shared_ptr<AutomationControl>) const;
+
+ AutoState get_parameter_automation_state (Evoral::Parameter param);
+ virtual void set_parameter_automation_state (Evoral::Parameter param, AutoState);
+
+ AutoStyle get_parameter_automation_style (Evoral::Parameter param);
+ void set_parameter_automation_style (Evoral::Parameter param, AutoStyle);