Ardour  8.7-14-g57a6773833
ArdourSurface::NS_MCU::Meter Class Reference

#include <meter.h>

Inheritance diagram for ArdourSurface::NS_MCU::Meter:
[legend]

Public Member Functions

 Meter (int id, std::string name, Group &group)
 
void send_update (Surface &, float dB)
 
bool enabled () const
 
MidiByteArray zero ()
 
void notify_metering_state_changed (Surface &surface, bool transport_is_rolling, bool metering_active)
 
- Public Member Functions inherited from ArdourSurface::NS_MCU::Control
 Control (int id, std::string name, Group &group)
 
virtual ~Control ()
 
int id () const
 
const std::string & name () const
 
Groupgroup () const
 
bool in_use () const
 
void set_in_use (bool)
 
std::shared_ptr< ARDOUR::AutomationControlcontrol () const
 
virtual void set_control (std::shared_ptr< ARDOUR::AutomationControl >)
 
float get_value ()
 
void set_value (float val, PBD::Controllable::GroupControlDisposition gcd=PBD::Controllable::UseGroup)
 
virtual void start_touch (Temporal::timepos_t const &when)
 
virtual void stop_touch (Temporal::timepos_t const &when)
 

Static Public Member Functions

static std::pair< bool, float > calculate_meter_over_and_deflection (float dB)
 
static Controlfactory (Surface &, int id, const char *, Group &)
 

Private Attributes

bool _enabled
 
bool overload_on
 

Additional Inherited Members

- Public Attributes inherited from ArdourSurface::NS_MCU::Control
sigc::connection in_use_connection
 
Controlin_use_touch_control
 
- Protected Attributes inherited from ArdourSurface::NS_MCU::Control
std::shared_ptr< ARDOUR::AutomationControlnormal_ac
 

Detailed Description

Definition at line 30 of file surfaces/mackie/meter.h.

Constructor & Destructor Documentation

◆ Meter()

ArdourSurface::NS_MCU::Meter::Meter ( int  id,
std::string  name,
Group group 
)
inline

Definition at line 33 of file surfaces/mackie/meter.h.

Member Function Documentation

◆ calculate_meter_over_and_deflection()

static std::pair<bool, float> ArdourSurface::NS_MCU::Meter::calculate_meter_over_and_deflection ( float  dB)
static

◆ enabled()

bool ArdourSurface::NS_MCU::Meter::enabled ( void  ) const
inline

Definition at line 40 of file surfaces/mackie/meter.h.

◆ factory()

static Control* ArdourSurface::NS_MCU::Meter::factory ( Surface ,
int  id,
const char *  ,
Group  
)
static

◆ notify_metering_state_changed()

void ArdourSurface::NS_MCU::Meter::notify_metering_state_changed ( Surface surface,
bool  transport_is_rolling,
bool  metering_active 
)

◆ send_update()

void ArdourSurface::NS_MCU::Meter::send_update ( Surface ,
float  dB 
)

◆ zero()

MidiByteArray ArdourSurface::NS_MCU::Meter::zero ( )
virtual

Member Data Documentation

◆ _enabled

bool ArdourSurface::NS_MCU::Meter::_enabled
private

Definition at line 50 of file surfaces/mackie/meter.h.

◆ overload_on

bool ArdourSurface::NS_MCU::Meter::overload_on
private

Definition at line 51 of file surfaces/mackie/meter.h.


The documentation for this class was generated from the following file: