#include <midiport/midiinputport.h>
Public Member Functions | |
MidiInputPort ()=default | |
MidiInputPort (MidiService &service) | |
virtual bool | start (utility::ErrorState &errorState) override |
virtual void | stop () override |
MidiService & | getService () |
void | receiveEvent (std::unique_ptr< MidiEvent > event) |
const std::vector< int > | getPortNumbers () const |
std::string | getPortNames () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
std::vector< std::string > | mPortNames |
Property: 'Ports' names of ports this object opens and listens to. When left empty all ports are opened. More... | |
bool | mDebugOutput = false |
Property: 'EnableDebugOutput' If true, incoming messages will be logged for debugging purposes. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Opens and manages one or more midi input ports that are monitored for incoming midi messages. Messages will be parsed and passed on to the midi service for processing. When no 'Ports' are specified all ports are opened.
|
default |
MidiInputPort | ( | MidiService & | service | ) |
std::string getPortNames | ( | ) | const |
const std::vector<int> getPortNumbers | ( | ) | const |
MidiService& getService | ( | ) |
void receiveEvent | ( | std::unique_ptr< MidiEvent > | event | ) |
Called internally by the midi callback.
|
overridevirtual |
Starts the midi input port.
errorState | contains the error if the port could not be opened. |
Reimplemented from Device.
|
overridevirtual |
Stops the midi input port.
Reimplemented from Device.
bool mDebugOutput = false |
Property: 'EnableDebugOutput' If true, incoming messages will be logged for debugging purposes.
std::vector<std::string> mPortNames |
Property: 'Ports' names of ports this object opens and listens to. When left empty all ports are opened.
The name of the ports that will be listened to for incoming messages. If left empty all available ports will be opened and listened to.