33 std::shared_ptr<ARDOUR::AutomationList> l=std::shared_ptr<ARDOUR::AutomationList>(),
34 const std::string&
name=
"",
45 bool slaved_to (std::shared_ptr<AutomationControl>)
const;
48 std::set<std::shared_ptr<AutomationControl>>
masters ()
const;
53 Glib::Threads::RWLock::ReaderLock lm (master_lock);
54 return get_masters_value_locked ();
59 Glib::Threads::RWLock::ReaderLock lm (master_lock);
60 return reduce_by_masters_locked (val, ignore_automation_state);
64 Glib::Threads::RWLock::ReaderLock lm (master_lock);
65 return get_masters_curve_locked (s, e, v, l);
82 Glib::Threads::RWLock::ReaderLock lm (master_lock);
83 return find_next_event_locked (n, e, ev);
92 MasterRecord (std::weak_ptr<AutomationControl> gc,
double vc,
double vm)
99 std::shared_ptr<AutomationControl>
master()
const { assert(_master.lock());
return _master.lock(); }
104 double val_master_inv ()
const {
return _val_master == 0 ? 0 : 1.0 / _val_master; }
105 double master_ratio ()
const {
return _val_master == 0 ? 0 : master()->get_value() / _val_master; }
114 bool yn()
const {
return _yn; }
131 typedef std::map<PBD::ID,MasterRecord>
Masters;
double master_ratio() const
double val_master_inv() const
double val_master() const
PBD::ScopedConnection changed_connection
int set_state(XMLNode const &, int)
PBD::ScopedConnection dropped_connection
MasterRecord(std::weak_ptr< AutomationControl > gc, double vc, double vm)
std::shared_ptr< AutomationControl > master() const
std::weak_ptr< AutomationControl > _master
void actually_set_value(double value, PBD::Controllable::GroupControlDisposition)
void update_boolean_masters_records(std::shared_ptr< AutomationControl >)
bool get_masters_curve(samplepos_t s, samplepos_t e, float *v, samplecnt_t l) const
std::map< PBD::ID, MasterRecord > Masters
PBD::Signal< void()> MasterStatusChange
int32_t get_boolean_masters() const
virtual void post_add_master(std::shared_ptr< AutomationControl >)
void master_going_away(std::weak_ptr< AutomationControl >)
void use_saved_master_ratios()
Glib::Threads::RWLock master_lock
virtual bool get_masters_curve_locked(samplepos_t, samplepos_t, float *, samplecnt_t) const
bool slaved_to(std::shared_ptr< AutomationControl >) const
bool masters_curve_multiply(timepos_t const &, timepos_t const &, float *, samplecnt_t) const
virtual void pre_remove_master(std::shared_ptr< AutomationControl >)
virtual ~SlavableAutomationControl()
int set_state(XMLNode const &, int)
virtual void automation_run(samplepos_t start, pframes_t nframes)
bool boolean_automation_run(samplepos_t start, pframes_t len)
SlavableAutomationControl(ARDOUR::Session &, const Evoral::Parameter ¶meter, const ParameterDescriptor &desc, std::shared_ptr< ARDOUR::AutomationList > l=std::shared_ptr< ARDOUR::AutomationList >(), const std::string &name="", PBD::Controllable::Flag flags=PBD::Controllable::Flag(0))
virtual bool boolean_automation_run_locked(samplepos_t start, pframes_t len)
bool find_next_event(Temporal::timepos_t const &n, Temporal::timepos_t const &e, Evoral::ControlEvent &ev) const
virtual double get_masters_value_locked() const
void remove_master(std::shared_ptr< AutomationControl >)
virtual double scale_automation_callback(double val, double ratio) const
bool find_next_event_locked(Temporal::timepos_t const &now, Temporal::timepos_t const &end, Evoral::ControlEvent &next_event) const
virtual void master_changed(bool from_self, GroupControlDisposition gcd, std::weak_ptr< AutomationControl >)
virtual bool handle_master_change(std::shared_ptr< AutomationControl >)
XMLNode & get_state() const
std::set< std::shared_ptr< AutomationControl > > masters() const
double get_masters_value() const
void add_master(std::shared_ptr< AutomationControl >)
double reduce_by_masters(double val, bool ignore_automation_state=false) const
double get_value_locked() const
virtual double reduce_by_masters_locked(double val, bool) const
GtkImageIconNameData name
PBD::PropertyDescriptor< timepos_t > start
Temporal::samplecnt_t samplecnt_t
Temporal::samplepos_t samplepos_t