24 #include <QStringList> 34 #if defined(DRUMSTICK_STATIC) 35 #define DRUMSTICK_RT_EXPORT 37 #if defined(drumstick_rt_EXPORTS) 38 #define DRUMSTICK_RT_EXPORT Q_DECL_EXPORT 40 #define DRUMSTICK_RT_EXPORT Q_DECL_IMPORT 139 virtual void initialize(
QSettings* settings) = 0;
144 virtual QString backendName() = 0;
149 virtual QString publicName() = 0;
154 virtual void setPublicName(QString name) = 0;
160 virtual QList<MIDIConnection> connections(
bool advanced =
false) = 0;
165 virtual void setExcludedConnections(QStringList conns) = 0;
174 virtual void close() = 0;
188 virtual void sendNoteOff(
int chan,
int note,
int vel) = 0;
196 virtual void sendNoteOn(
int chan,
int note,
int vel) = 0;
204 virtual void sendKeyPressure(
int chan,
int note,
int value) = 0;
212 virtual void sendController(
int chan,
int control,
int value) = 0;
219 virtual void sendProgram(
int chan,
int program) = 0;
226 virtual void sendChannelPressure(
int chan,
int value) = 0;
233 virtual void sendPitchBend(
int chan,
int value) = 0;
239 virtual void sendSysex(
const QByteArray& data) = 0;
245 virtual void sendSystemMsg(
const int status) = 0;
QPair< QString, QVariant > MIDIConnection
MIDIConnection represents a connection identifier.
const quint8 MIDI_REALTIME_CONTINUE
MIDI Continue status message.
const quint8 MIDI_STATUS_CONTROLCHANGE
MIDI status byte for CONTROL change messages.
const quint8 MIDI_CONTROL_ALL_NOTES_OFF
MIDI Controller number for All notes off.
const quint8 MIDI_CONTROL_REVERB_SEND
MIDI Controller number for Reverb send.
The QSettings class provides persistent platform-independent application settings.
const quint8 MIDI_STATUS_REALTIME
Minimum value for MIDI Realtime messages status.
const quint8 MIDI_REALTIME_START
MIDI Start status message.
const quint8 MIDI_REALTIME_STOP
MIDI Stop status message.
const quint8 MIDI_REALTIME_SENSING
MIDI Active Sensing status message.
const quint8 MIDI_STATUS_CHANNELPRESSURE
MIDI status byte for CHANNEL PRESSURE messages.
const quint8 MIDI_CONTROL_ALL_SOUNDS_OFF
MIDI Controller number for All sounds off.
const quint8 MIDI_STATUS_KEYPRESURE
MIDI status byte for KEY pressure messages.
The QObject class is the base class of all Qt objects.
const quint8 MIDI_CONTROL_MSB_BANK_SELECT
MIDI Controller number for MSB Bank number.
const quint8 MIDI_STATUS_NOTEON
MIDI status byte for NOTE ON messages.
const quint8 MIDI_CONTROL_LSB_BANK_SELECT
MIDI Controller number for LSB Bank number.
const quint8 MIDI_GM_STD_DRUM_CHANNEL
Number of the GM percussion channel.
const quint8 MIDI_COMMON_TUNEREQ
MIDI Tune Request status message.
int MIDI_LSB(int x)
MIDI_LSB is a function to extract the least significative byte of a MIDI value.
const quint8 MIDI_STATUS_MASK
Mask to extract the MIDI status byte from a MIDI message.
int MIDI_MSB(int x)
MIDI_MSB is a function to extract the most significative byte of a MIDI value.
const quint8 MIDI_REALTIME_RESET
MIDI Reset status message.
MIDIOutput(QObject *parent=nullptr)
MIDIOutput constructor.
const quint8 MIDI_REALTIME_CLOCK
MIDI Clock status message.
const quint8 MIDI_STATUS_PROGRAMCHANGE
MIDI status byte for PROGRAM change messages.
const quint8 MIDI_STATUS_NOTEOFF
MIDI status byte for NOTE OFF messages.
const quint8 MIDI_STD_CHANNELS
Standard number of MIDI channels.
const quint8 MIDI_COMMON_QTRFRAME
MIDI Quarter frame status message.
const quint8 MIDI_STATUS_SYSEX
MIDI status byte for System Exclusive START messages.
const quint8 MIDI_CONTROL_MSB_MAIN_VOLUME
MIDI Controller number for MSB volume.
const quint8 MIDI_COMMON_SONGPP
MIDI Song Position status message.
const quint8 MIDI_CONTROL_RESET_CONTROLLERS
MIDI Controller number for Reset all controllers.
const quint8 MIDI_STATUS_ENDSYSEX
MIDI status byte for System Exclusive END messages.
const quint8 MIDI_COMMON_SONGSELECT
MIDI Song Select status message.
const quint8 MIDI_STATUS_PITCHBEND
MIDI status byte for PITCH bend messages.
const quint8 MIDI_CHANNEL_MASK
Mask to extract the MIDI channel byte from a MIDI message.