Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::MIDISceneChange Class Reference

#include <midi_scene_change.h>

Inheritance diagram for ARDOUR::MIDISceneChange:
[legend]

Public Member Functions

 MIDISceneChange (int channel, int bank=-1, int program=-1)
 
 MIDISceneChange (const XMLNode &, int version)
 
 ~MIDISceneChange ()
 
void set_channel (int channel)
 
void set_program (int program)
 
void set_bank (int bank)
 
int channel () const
 
int program () const
 
int bank () const
 
size_t get_bank_msb_message (uint8_t *buf, size_t size) const
 
size_t get_bank_lsb_message (uint8_t *buf, size_t size) const
 
size_t get_program_message (uint8_t *buf, size_t size) const
 
XMLNodeget_state () const
 
int set_state (const XMLNode &, int version)
 
bool operator== (const MIDISceneChange &other) const
 
- Public Member Functions inherited from ARDOUR::SceneChange
 SceneChange ()
 
virtual ~SceneChange ()
 
uint32_t color () const
 
void set_color (uint32_t)
 
bool color_out_of_bounds () const
 
bool active () const
 
void set_active (bool)
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_change (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (PBD::Command *) const
 
virtual void rdiff (std::vector< PBD::Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 

Private Attributes

int _bank
 
int _program
 
uint8_t _channel
 

Additional Inherited Members

- Static Public Member Functions inherited from ARDOUR::SceneChange
static std::shared_ptr< SceneChangefactory (const XMLNode &, int version)
 
- Public Attributes inherited from ARDOUR::SceneChange
PBD::Signal< void()> ColorChanged
 
PBD::Signal< void()> ActiveChanged
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal< void(const PropertyChange &)> PropertyChanged
 
- Static Public Attributes inherited from ARDOUR::SceneChange
static std::string xml_node_name
 
static const uint32_t out_of_bound_color
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &) const
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
bool regenerate_xml_or_string_ids () const
 
- Protected Attributes inherited from ARDOUR::SceneChange
uint32_t _color
 
bool _active
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 

Detailed Description

Definition at line 32 of file midi_scene_change.h.

Constructor & Destructor Documentation

◆ MIDISceneChange() [1/2]

ARDOUR::MIDISceneChange::MIDISceneChange ( int  channel,
int  bank = -1,
int  program = -1 
)

◆ MIDISceneChange() [2/2]

ARDOUR::MIDISceneChange::MIDISceneChange ( const XMLNode ,
int  version 
)

◆ ~MIDISceneChange()

ARDOUR::MIDISceneChange::~MIDISceneChange ( )

Member Function Documentation

◆ bank()

int ARDOUR::MIDISceneChange::bank ( ) const
inline

Definition at line 45 of file midi_scene_change.h.

◆ channel()

int ARDOUR::MIDISceneChange::channel ( ) const
inline

Definition at line 43 of file midi_scene_change.h.

◆ get_bank_lsb_message()

size_t ARDOUR::MIDISceneChange::get_bank_lsb_message ( uint8_t *  buf,
size_t  size 
) const

◆ get_bank_msb_message()

size_t ARDOUR::MIDISceneChange::get_bank_msb_message ( uint8_t *  buf,
size_t  size 
) const

◆ get_program_message()

size_t ARDOUR::MIDISceneChange::get_program_message ( uint8_t *  buf,
size_t  size 
) const

◆ get_state()

XMLNode& ARDOUR::MIDISceneChange::get_state ( ) const
virtual

Implements PBD::Stateful.

◆ operator==()

bool ARDOUR::MIDISceneChange::operator== ( const MIDISceneChange other) const

◆ program()

int ARDOUR::MIDISceneChange::program ( ) const
inline

Definition at line 44 of file midi_scene_change.h.

◆ set_bank()

void ARDOUR::MIDISceneChange::set_bank ( int  bank)

◆ set_channel()

void ARDOUR::MIDISceneChange::set_channel ( int  channel)

◆ set_program()

void ARDOUR::MIDISceneChange::set_program ( int  program)

◆ set_state()

int ARDOUR::MIDISceneChange::set_state ( const XMLNode ,
int  version 
)
virtual

Implements PBD::Stateful.

Member Data Documentation

◆ _bank

int ARDOUR::MIDISceneChange::_bank
private

Definition at line 57 of file midi_scene_change.h.

◆ _channel

uint8_t ARDOUR::MIDISceneChange::_channel
private

Definition at line 59 of file midi_scene_change.h.

◆ _program

int ARDOUR::MIDISceneChange::_program
private

Definition at line 58 of file midi_scene_change.h.


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