23#ifndef H2_MIDI_COMMON_H
24#define H2_MIDI_COMMON_H
26#include <core/config.h>
114 void setType(
int nStatusByte );
124 QString
toQString(
const QString& sPrefix =
"",
bool bShort =
true )
const;
Basic building block for the communication between the core of Hydrogen and its GUI.
static constexpr int instrumentOffset
When recording notes using MIDI NOTE_ON events this offset will be applied to the provided pitch in o...
QString toQString(const QString &sPrefix="", bool bShort=true) const
Formatted string version for debugging purposes.
static QStringList getEventList()
Retrieve the string representation for all available Event.
Event
Subset of incoming MIDI events that will be handled by Hydrogen.
void setType(int nStatusByte)
Derives and set m_type (and if applicable m_nChannel) using the statusByte of an incoming MIDI messag...
static QString TypeToQString(MidiMessageType type)
MidiMessageType
All possible types of incoming MIDI messages.
@ POLYPHONIC_KEY_PRESSURE
std::vector< unsigned char > m_sysexData
static QString EventToQString(Event event)
void clear()
Reset message.
static Event QStringToEvent(const QString &sEvent)