19 #ifndef __ardour_amp_h__
20 #define __ardour_amp_h__
41 std::string display_name()
const;
43 bool visible ()
const;
53 void set_gain_automation_buffer (
gain_t *);
61 int set_state (
const XMLNode&,
int version);
71 gain_t gain ()
const {
return _gain_control->get_value(); }
73 void set_gain (
gain_t g,
void *src);
74 void inc_gain (
gain_t delta,
void *src);
76 static void update_meters();
86 alist()->reset_default (1.0);
92 void set_value (
double val);
94 double internal_to_interface (
double)
const;
95 double interface_to_internal (
double)
const;
96 double internal_to_user (
double)
const;
97 double user_to_internal (
double)
const;
98 std::string get_user_string ()
const;
106 return _gain_control;
110 return _gain_control;
133 #endif // __ardour_amp_h__
bool _denormal_protection
bool _apply_gain_automation
boost::shared_ptr< GainControl > _gain_control
bool apply_gain_automation() const
gain_t * _gain_automation_buffer
std::string value_as_string(const ARDOUR::ParameterDescriptor &desc, double v)
static float accurate_coefficient_to_dB(float coeff)
GainControl(std::string name, Session &session, Amp *a, const Evoral::Parameter ¶m, boost::shared_ptr< AutomationList > al=boost::shared_ptr< AutomationList >())
framepos_t _current_automation_frame
boost::shared_ptr< GainControl > gain_control()
void apply_gain_automation(bool yn)
boost::shared_ptr< const GainControl > gain_control() const