24 #include <QStringList> 36 #if defined(DRUMSTICK_STATIC) 37 #define DRUMSTICK_RT_EXPORT 39 #if defined(drumstick_rt_EXPORTS) 40 #define DRUMSTICK_RT_EXPORT Q_DECL_EXPORT 42 #define DRUMSTICK_RT_EXPORT Q_DECL_IMPORT 75 virtual void initialize(
QSettings *settings) = 0;
80 virtual QString backendName() = 0;
85 virtual QString publicName() = 0;
90 virtual void setPublicName(QString name) = 0;
96 virtual QList<MIDIConnection> connections(
bool advanced =
false) = 0;
101 virtual void setExcludedConnections(QStringList conns) = 0;
110 virtual void close() = 0;
120 virtual void setMIDIThruDevice(
MIDIOutput *device) = 0;
125 virtual void enableMIDIThru(
bool enable) = 0;
130 virtual bool isEnabledMIDIThru() = 0;
139 void midiNoteOff(
const int chan,
const int note,
const int vel);
147 void midiNoteOn(
const int chan,
const int note,
const int vel);
155 void midiKeyPressure(
const int chan,
const int note,
const int value);
163 void midiController(
const int chan,
const int control,
const int value);
170 void midiProgram(
const int chan,
const int program);
177 void midiChannelPressure(
const int chan,
const int value);
184 void midiPitchBend(
const int chan,
const int value);
190 void midiSysex(
const QByteArray &data);
196 void midiSystemCommon(
const int status);
202 void midiSystemRealtime(
const int status);
211 #endif // MIDIINPUT_H
QPair< QString, QVariant > MIDIConnection
MIDIConnection represents a connection identifier.
The QSettings class provides persistent platform-independent application settings.
The QObject class is the base class of all Qt objects.
Realtime MIDI output interface.