XX CMake Package
Loading...
Searching...
No Matches
XXMidiInterfaceOutput.h
Go to the documentation of this file.
1#ifndef XXMidiInterfaceOutputH
2#define XXMidiInterfaceOutputH
3
4#include "XXMusicExportDef.h"
5
6#include "XXMidiCommon.h"
7#include "XXNote.h"
8
9namespace XX
10{
11 namespace Midi
12 {
13 namespace Interface
14 {
17
19 {
20 public:
22 virtual ~Output();
23
24 public:
25 virtual void open();
26 virtual void close();
27 virtual bool isOpen() const;
28
29 void sendNoteOn(const Midi::Channel& channel, const Note& note, const Midi::Velocity& velocity);
30 void sendNoteOff(const Midi::Channel& channel, const Note& note);
31 void sendControllerChange(const Midi::Channel& channel, const Midi::ControllerMessage& controllerMessage, const uchar& value);
32
33 virtual void sendBuffer(const Bytes& message) = 0;
34 };
35
36 } // namespace Interface
37 } // namespace Midi
38} // namespace XX
39
40#endif // NOT XXMidiInterfaceOutputH
#define XXMUSIC_DECLSPEC
Definition XXMusicExportDef.h:11
virtual void sendBuffer(const Bytes &message)=0
virtual bool isOpen() const
void sendControllerChange(const Midi::Channel &channel, const Midi::ControllerMessage &controllerMessage, const uchar &value)
void sendNoteOff(const Midi::Channel &channel, const Note &note)
void sendNoteOn(const Midi::Channel &channel, const Note &note, const Midi::Velocity &velocity)
musical note
Definition XXNote.h:15
ControllerMessage
midi control messages
Definition XXMidiCommon.h:99
uchar Velocity
Definition XXMidiCommon.h:22
QList< uchar > Bytes
Definition XXMidiCommon.h:11
uchar Channel
Definition XXMidiCommon.h:19
Definition XXMidiInterfaceInput.h:12
Definition XXMidiCommon.h:17
Definition XXPopulatedAbstract.h:11