Ardour  9.0-pre0-582-g084a23a80d
MIDIInvokable Class Referenceabstract

#include <midiinvokable.h>

Inheritance diagram for MIDIInvokable:
[legend]

Public Member Functions

 MIDIInvokable (MIDI::Parser &)
 
virtual ~MIDIInvokable ()
 
virtual int init (GenericMidiControlProtocol &, const std::string &, MIDI::byte *data=0, size_t dsize=0)
 
MIDI::Parserget_parser ()
 
void bind_midi (MIDI::channel_t, MIDI::eventType, MIDI::byte)
 
MIDI::channel_t get_control_channel ()
 
MIDI::eventType get_control_type ()
 
MIDI::byte get_control_additional ()
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual XMLNodeget_state () const =0
 
virtual int set_state (const XMLNode &, int version)=0
 
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
 

Protected Member Functions

void midi_sense_note (MIDI::Parser &, MIDI::EventTwoBytes *, bool is_on)
 
void midi_sense_note_on (MIDI::Parser &p, MIDI::EventTwoBytes *tb)
 
void midi_sense_note_off (MIDI::Parser &p, MIDI::EventTwoBytes *tb)
 
void midi_sense_controller (MIDI::Parser &, MIDI::EventTwoBytes *)
 
void midi_sense_program_change (MIDI::Parser &, MIDI::byte)
 
void midi_sense_sysex (MIDI::Parser &, MIDI::byte *, size_t)
 
void midi_sense_any (MIDI::Parser &, MIDI::byte *, size_t)
 
virtual void execute ()=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 &) 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

GenericMidiControlProtocol_ui
 
std::string _invokable_name
 
MIDI::Parser_parser
 
PBD::ScopedConnection midi_sense_connection [2]
 
MIDI::eventType control_type
 
MIDI::byte control_additional
 
MIDI::channel_t control_channel
 
MIDI::bytedata
 
size_t data_size
 
bool _parameterized
 
- 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
 

Additional Inherited Members

- Public Attributes inherited from PBD::Stateful
PBD::Signal< void(const PropertyChange &)> PropertyChanged
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 

Detailed Description

Definition at line 38 of file midiinvokable.h.

Constructor & Destructor Documentation

◆ MIDIInvokable()

MIDIInvokable::MIDIInvokable ( MIDI::Parser )

◆ ~MIDIInvokable()

virtual MIDIInvokable::~MIDIInvokable ( )
virtual

Member Function Documentation

◆ bind_midi()

void MIDIInvokable::bind_midi ( MIDI::channel_t  ,
MIDI::eventType  ,
MIDI::byte   
)

◆ execute()

virtual void MIDIInvokable::execute ( )
protectedpure virtual

Implemented in MIDIFunction, and MIDIAction.

◆ get_control_additional()

MIDI::byte MIDIInvokable::get_control_additional ( )
inline

Definition at line 51 of file midiinvokable.h.

◆ get_control_channel()

MIDI::channel_t MIDIInvokable::get_control_channel ( )
inline

Definition at line 49 of file midiinvokable.h.

◆ get_control_type()

MIDI::eventType MIDIInvokable::get_control_type ( )
inline

Definition at line 50 of file midiinvokable.h.

◆ get_parser()

MIDI::Parser& MIDIInvokable::get_parser ( )
inline

Definition at line 46 of file midiinvokable.h.

◆ init()

virtual int MIDIInvokable::init ( GenericMidiControlProtocol ,
const std::string &  ,
MIDI::byte data = 0,
size_t  dsize = 0 
)
virtual

Reimplemented in MIDIAction.

◆ midi_sense_any()

void MIDIInvokable::midi_sense_any ( MIDI::Parser ,
MIDI::byte ,
size_t   
)
protected

◆ midi_sense_controller()

void MIDIInvokable::midi_sense_controller ( MIDI::Parser ,
MIDI::EventTwoBytes  
)
protected

◆ midi_sense_note()

void MIDIInvokable::midi_sense_note ( MIDI::Parser ,
MIDI::EventTwoBytes ,
bool  is_on 
)
protected

◆ midi_sense_note_off()

void MIDIInvokable::midi_sense_note_off ( MIDI::Parser p,
MIDI::EventTwoBytes tb 
)
protected

◆ midi_sense_note_on()

void MIDIInvokable::midi_sense_note_on ( MIDI::Parser p,
MIDI::EventTwoBytes tb 
)
protected

◆ midi_sense_program_change()

void MIDIInvokable::midi_sense_program_change ( MIDI::Parser ,
MIDI::byte   
)
protected

◆ midi_sense_sysex()

void MIDIInvokable::midi_sense_sysex ( MIDI::Parser ,
MIDI::byte ,
size_t   
)
protected

Member Data Documentation

◆ _invokable_name

std::string MIDIInvokable::_invokable_name
protected

Definition at line 55 of file midiinvokable.h.

◆ _parameterized

bool MIDIInvokable::_parameterized
protected

Definition at line 63 of file midiinvokable.h.

◆ _parser

MIDI::Parser& MIDIInvokable::_parser
protected

Definition at line 56 of file midiinvokable.h.

◆ _ui

GenericMidiControlProtocol* MIDIInvokable::_ui
protected

Definition at line 54 of file midiinvokable.h.

◆ control_additional

MIDI::byte MIDIInvokable::control_additional
protected

Definition at line 59 of file midiinvokable.h.

◆ control_channel

MIDI::channel_t MIDIInvokable::control_channel
protected

Definition at line 60 of file midiinvokable.h.

◆ control_type

MIDI::eventType MIDIInvokable::control_type
protected

Definition at line 58 of file midiinvokable.h.

◆ data

MIDI::byte* MIDIInvokable::data
protected

Definition at line 61 of file midiinvokable.h.

◆ data_size

size_t MIDIInvokable::data_size
protected

Definition at line 62 of file midiinvokable.h.

◆ midi_sense_connection

PBD::ScopedConnection MIDIInvokable::midi_sense_connection[2]
protected

Definition at line 57 of file midiinvokable.h.


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