- /* automation */
-
- struct GainControl : public AutomationControl {
- GainControl (std::string name, Session& session, Amp* a, const Evoral::Parameter ¶m,
- boost::shared_ptr<AutomationList> al = boost::shared_ptr<AutomationList>() )
- : AutomationControl (session, param, al, name)
- , _amp (a) {
- set_flags (Controllable::Flag (flags() | Controllable::GainLike));
- alist()->reset_default (1.0);
- }
-
- void set_value (double val);
-
- double internal_to_interface (double) const;
- double interface_to_internal (double) const;
- double internal_to_user (double) const;
-
- Amp* _amp;
- };
-