Ardour  8.7-14-g57a6773833
MIDIFunction Class Reference

#include <midifunction.h>

Inheritance diagram for MIDIFunction:
[legend]

Public Types

enum  Function {
  NextBank , PrevBank , TransportRoll , TransportStop ,
  TransportZero , TransportStart , TransportEnd , TransportLoopToggle ,
  TransportRecordToggle , TransportRecordEnable , TransportRecordDisable , SelectAdd ,
  SelectRemove , SelectToggle , SelectSet , SetBank ,
  TrackSetSolo , TrackSetMute , TrackSetGain , TrackSetRecordEnable ,
  TrackSetSoloIsolate
}
 

Public Member Functions

 MIDIFunction (MIDI::Parser &)
 
virtual ~MIDIFunction ()
 
int setup (GenericMidiControlProtocol &, const std::string &function_name, const std::string &argument, MIDI::byte *sysex=0, size_t ssize=0)
 
const std::string & function_name () const
 
XMLNodeget_state () const
 
int set_state (const XMLNode &, int version)
 
- Public Member Functions inherited from MIDIInvokable
 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 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 Member Functions

void execute ()
 

Private Attributes

Function _function
 
std::string _argument
 

Additional Inherited Members

- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const PropertyChange & > PropertyChanged
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Protected Member Functions inherited from MIDIInvokable
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)
 
- 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 MIDIInvokable
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
 

Detailed Description

Definition at line 40 of file midifunction.h.

Member Enumeration Documentation

◆ Function

Enumerator
NextBank 
PrevBank 
TransportRoll 
TransportStop 
TransportZero 
TransportStart 
TransportEnd 
TransportLoopToggle 
TransportRecordToggle 
TransportRecordEnable 
TransportRecordDisable 
SelectAdd 
SelectRemove 
SelectToggle 
SelectSet 
SetBank 
TrackSetSolo 
TrackSetMute 
TrackSetGain 
TrackSetRecordEnable 
TrackSetSoloIsolate 

Definition at line 43 of file midifunction.h.

Constructor & Destructor Documentation

◆ MIDIFunction()

MIDIFunction::MIDIFunction ( MIDI::Parser )

◆ ~MIDIFunction()

virtual MIDIFunction::~MIDIFunction ( )
virtual

Member Function Documentation

◆ execute()

void MIDIFunction::execute ( )
privatevirtual

Implements MIDIInvokable.

◆ function_name()

const std::string& MIDIFunction::function_name ( ) const
inline

Definition at line 74 of file midifunction.h.

◆ get_state()

XMLNode& MIDIFunction::get_state ( ) const
virtual

Implements PBD::Stateful.

◆ set_state()

int MIDIFunction::set_state ( const XMLNode ,
int  version 
)
virtual

Implements PBD::Stateful.

◆ setup()

int MIDIFunction::setup ( GenericMidiControlProtocol ,
const std::string &  function_name,
const std::string &  argument,
MIDI::byte sysex = 0,
size_t  ssize = 0 
)

Member Data Documentation

◆ _argument

std::string MIDIFunction::_argument
private

Definition at line 81 of file midifunction.h.

◆ _function

Function MIDIFunction::_function
private

Definition at line 80 of file midifunction.h.


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