|
Arduino MIDI Library
Version 4.3.1
|
#include <midi_Message.h>
Public Member Functions | |
| Message () | |
| unsigned | getSysExSize () const |
Public Attributes | |
| Channel | channel |
| MidiType | type |
| DataByte | data1 |
| DataByte | data2 |
| DataByte | sysexArray [sSysExMaxSize] |
| bool | valid |
Static Public Attributes | |
| static const unsigned | sSysExMaxSize = SysExMaxSize |
The Message structure contains decoded data of a MIDI message read from the serial port with read()
Definition at line 39 of file midi_Message.h.
Default constructor
Initializes the attributes with their default values.
Definition at line 44 of file midi_Message.h.
|
inline |
Definition at line 91 of file midi_Message.h.
The MIDI channel on which the message was recieved.
Value goes from 1 to 16.
Definition at line 61 of file midi_Message.h.
The first data byte.
Value goes from 0 to 127.
Definition at line 71 of file midi_Message.h.
The second data byte. If the message is only 2 bytes long, this one is null.
Value goes from 0 to 127.
Definition at line 77 of file midi_Message.h.
|
static |
The maximum size for the System Exclusive array.
Definition at line 56 of file midi_Message.h.
| DataByte Message< SysExMaxSize >::sysexArray[sSysExMaxSize] |
System Exclusive dedicated byte array.
Array length is stocked on 16 bits, in data1 (LSB) and data2 (MSB)
Definition at line 83 of file midi_Message.h.
The type of the message (see the MidiType enum for types reference)
Definition at line 66 of file midi_Message.h.
| bool Message< SysExMaxSize >::valid |
This boolean indicates if the message is valid or not. There is no channel consideration here, validity means the message respects the MIDI norm.
Definition at line 89 of file midi_Message.h.