28 #include "../../system/log.h"
29 #include "../../messages/messagehandler.h"
30 #include "../../messages/messagemidievent.h"
51 else return "No MIDI ports available.";
86 LogI(
"Midi event with data %d %d %d %lf",
88 MessageHandler::send<MessageMidiEvent>(data);
double deltatime
Time elapsed since the last MIDI event.
MidiEvent event
Midi event, encoded by the enumeration MidiEvent.
Midi event when a key is pressed.
Midi event for changing voice.
void send(Data &data)
Send new MIDI data to the messaging system.
MidiEvent
Enumeration of the possible MIDI events.
int byte1
Data byte, usually representing the MIDI key index.
virtual std::string GetPortName(int i)=0
Get the name of device number i (starting with zero)
Midi event when a key is released.
static MidiEvent byteToEvent(int byte)
Convert MIDI code to MidiEvent.
virtual int GetNumberOfPorts()=0
Get the number of available input devices.
virtual std::string GetPortNames()
Get a list of all available input devices.
int byte2
Data byte, usually representing the keystroke intensity.
Structure of the data associated with a MIDI event.