Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::NS_MCU::Control Class Referenceabstract

#include <controls.h>

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

Public Member Functions

 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)
 
virtual MidiByteArray zero ()=0
 
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)
 

Public Attributes

sigc::connection in_use_connection
 
Controlin_use_touch_control
 

Protected Attributes

std::shared_ptr< ARDOUR::AutomationControlnormal_ac
 

Private Attributes

int _id
 
std::string _name
 
Group_group
 
bool _in_use
 

Detailed Description

Definition at line 48 of file mackie/controls.h.

Constructor & Destructor Documentation

◆ Control()

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

◆ ~Control()

virtual ArdourSurface::NS_MCU::Control::~Control ( )
inlinevirtual

Definition at line 51 of file mackie/controls.h.

Member Function Documentation

◆ control()

std::shared_ptr<ARDOUR::AutomationControl> ArdourSurface::NS_MCU::Control::control ( ) const
inline

Definition at line 70 of file mackie/controls.h.

◆ get_value()

float ArdourSurface::NS_MCU::Control::get_value ( )

◆ group()

Group& ArdourSurface::NS_MCU::Control::group ( ) const
inline

Definition at line 55 of file mackie/controls.h.

◆ id()

int ArdourSurface::NS_MCU::Control::id ( ) const
inline

Definition at line 53 of file mackie/controls.h.

◆ in_use()

bool ArdourSurface::NS_MCU::Control::in_use ( ) const

◆ name()

const std::string& ArdourSurface::NS_MCU::Control::name ( ) const
inline

Definition at line 54 of file mackie/controls.h.

◆ set_control()

virtual void ArdourSurface::NS_MCU::Control::set_control ( std::shared_ptr< ARDOUR::AutomationControl )
virtual

◆ set_in_use()

void ArdourSurface::NS_MCU::Control::set_in_use ( bool  )

◆ set_value()

void ArdourSurface::NS_MCU::Control::set_value ( float  val,
PBD::Controllable::GroupControlDisposition  gcd = PBD::Controllable::UseGroup 
)

◆ start_touch()

virtual void ArdourSurface::NS_MCU::Control::start_touch ( Temporal::timepos_t const &  when)
virtual

◆ stop_touch()

virtual void ArdourSurface::NS_MCU::Control::stop_touch ( Temporal::timepos_t const &  when)
virtual

◆ zero()

Member Data Documentation

◆ _group

Group& ArdourSurface::NS_MCU::Control::_group
private

Definition at line 85 of file mackie/controls.h.

◆ _id

int ArdourSurface::NS_MCU::Control::_id
private

Definition at line 83 of file mackie/controls.h.

◆ _in_use

bool ArdourSurface::NS_MCU::Control::_in_use
private

Definition at line 86 of file mackie/controls.h.

◆ _name

std::string ArdourSurface::NS_MCU::Control::_name
private

Definition at line 84 of file mackie/controls.h.

◆ in_use_connection

sigc::connection ArdourSurface::NS_MCU::Control::in_use_connection

Definition at line 61 of file mackie/controls.h.

◆ in_use_touch_control

Control* ArdourSurface::NS_MCU::Control::in_use_touch_control

If we are doing an in_use timeout for a fader without touch, this is its touch button control; otherwise 0.

Definition at line 68 of file mackie/controls.h.

◆ normal_ac

std::shared_ptr<ARDOUR::AutomationControl> ArdourSurface::NS_MCU::Control::normal_ac
protected

Definition at line 80 of file mackie/controls.h.


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