Ardour  9.0-pre0-582-g084a23a80d
Evoral::Control Class Reference

#include <Control.h>

Inheritance diagram for Evoral::Control:
[legend]

Public Member Functions

 Control (const Parameter &parameter, const ParameterDescriptor &desc, std::shared_ptr< ControlList > list)
 
virtual ~Control ()
 
virtual void set_double (double val, Temporal::timepos_t const &when=Temporal::timepos_t(), bool to_list=false)
 
virtual double get_double () const
 
void set_list (std::shared_ptr< ControlList >)
 
std::shared_ptr< ControlListlist ()
 
std::shared_ptr< const ControlListlist () const
 
const Parameterparameter () const
 

Public Attributes

PBD::Signal< void()> ListMarkedDirty
 

Protected Attributes

Parameter _parameter
 
std::shared_ptr< ControlList_list
 
double _user_value
 
PBD::ScopedConnection _list_marked_dirty_connection
 

Private Member Functions

void list_marked_dirty ()
 

Detailed Description

Base class representing some kind of (automatable) control; a fader's gain, for example, or a compressor plugin's threshold.

The class knows the Evoral::Parameter that it is controlling, and has a list of values for automation.

Definition at line 49 of file Control.h.

Constructor & Destructor Documentation

◆ Control()

Evoral::Control::Control ( const Parameter parameter,
const ParameterDescriptor desc,
std::shared_ptr< ControlList list 
)

◆ ~Control()

virtual Evoral::Control::~Control ( )
inlinevirtual

Definition at line 56 of file Control.h.

Member Function Documentation

◆ get_double()

virtual double Evoral::Control::get_double ( ) const
inlinevirtual

Definition at line 59 of file Control.h.

◆ list() [1/2]

std::shared_ptr<ControlList> Evoral::Control::list ( )
inline

Definition at line 63 of file Control.h.

◆ list() [2/2]

std::shared_ptr<const ControlList> Evoral::Control::list ( ) const
inline

Definition at line 64 of file Control.h.

◆ list_marked_dirty()

void Evoral::Control::list_marked_dirty ( )
private

◆ parameter()

const Parameter& Evoral::Control::parameter ( ) const
inline

Definition at line 66 of file Control.h.

◆ set_double()

virtual void Evoral::Control::set_double ( double  val,
Temporal::timepos_t const &  when = Temporal::timepos_t(),
bool  to_list = false 
)
virtual

◆ set_list()

void Evoral::Control::set_list ( std::shared_ptr< ControlList )

Member Data Documentation

◆ _list

std::shared_ptr<ControlList> Evoral::Control::_list
protected

Definition at line 73 of file Control.h.

◆ _list_marked_dirty_connection

PBD::ScopedConnection Evoral::Control::_list_marked_dirty_connection
protected

Definition at line 75 of file Control.h.

◆ _parameter

Parameter Evoral::Control::_parameter
protected

Definition at line 72 of file Control.h.

◆ _user_value

double Evoral::Control::_user_value
protected

Definition at line 74 of file Control.h.

◆ ListMarkedDirty

PBD::Signal<void()> Evoral::Control::ListMarkedDirty

Emitted when the our ControlList is marked dirty

Definition at line 69 of file Control.h.


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