ardour
Public Member Functions | Private Attributes | List of all members
ARDOUR::MIDISceneChange Class Reference

#include <midi_scene_change.h>

Inheritance diagram for ARDOUR::MIDISceneChange:
ARDOUR::SceneChange PBD::Stateful

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 ()
 
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
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_changes (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 (Command *) const
 
virtual void rdiff (std::vector< 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 boost::shared_ptr
< SceneChange
factory (const XMLNode &, int version)
 
- Public Attributes inherited from ARDOUR::SceneChange
PBD::Signal0< void > ColorChanged
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const
PropertyChange & > 
PropertyChanged
 
- Static Public Attributes inherited from ARDOUR::SceneChange
static std::string xml_node_name = X_("SceneChange")
 
static const uint32_t out_of_bound_color = 0x00000000
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version = 0
 
static int loading_state_version = 0
 
- 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 &)
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
- Protected Attributes inherited from ARDOUR::SceneChange
uint32_t _color
 
- 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 34 of file midi_scene_change.h.

Constructor & Destructor Documentation

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

Definition at line 31 of file midi_scene_change.cc.

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

Definition at line 45 of file midi_scene_change.cc.

MIDISceneChange::~MIDISceneChange ( )

Definition at line 53 of file midi_scene_change.cc.

Member Function Documentation

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

Definition at line 47 of file midi_scene_change.h.

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

Definition at line 45 of file midi_scene_change.h.

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

Definition at line 72 of file midi_scene_change.cc.

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

Definition at line 58 of file midi_scene_change.cc.

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

Definition at line 86 of file midi_scene_change.cc.

XMLNode & MIDISceneChange::get_state ( void  )
virtual

Implements PBD::Stateful.

Definition at line 99 of file midi_scene_change.cc.

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

Definition at line 153 of file midi_scene_change.cc.

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

Definition at line 46 of file midi_scene_change.h.

void ARDOUR::MIDISceneChange::set_bank ( int  bank)
void ARDOUR::MIDISceneChange::set_channel ( int  channel)
void ARDOUR::MIDISceneChange::set_program ( int  program)
int MIDISceneChange::set_state ( const XMLNode node,
int  version 
)
virtual

Implements PBD::Stateful.

Definition at line 120 of file midi_scene_change.cc.

Member Data Documentation

int ARDOUR::MIDISceneChange::_bank
private

Definition at line 59 of file midi_scene_change.h.

uint8_t ARDOUR::MIDISceneChange::_channel
private

Definition at line 61 of file midi_scene_change.h.

int ARDOUR::MIDISceneChange::_program
private

Definition at line 60 of file midi_scene_change.h.


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