Ported from Arduino MIDI library Orignal: http://www.arduino.cc/playground/Main/MIDILibrary use Serial (UART)

Dependents:   MIDI_sample MIDI_usb_bridge MIDI_Interpreter midi-timer ... more

Embed: (wiki syntax)

« Back to documentation index

midimsg Struct Reference

midimsg Struct Reference

#include <MIDI.h>

Data Fields

byte channel
kMIDIType type
byte data1
byte data2
byte sysex_array [MIDI_SYSEX_ARRAY_SIZE]
bool valid

Detailed Description

The midimsg structure contains decoded data of a MIDI message read from the serial port with read() or thru().

Definition at line 104 of file MIDI.h.


Field Documentation

The MIDI channel on which the message was recieved.
Value goes from 1 to 16.

Definition at line 106 of file MIDI.h.

The first data byte.
Value goes from 0 to 127.

Definition at line 110 of file MIDI.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 112 of file MIDI.h.

byte sysex_array[MIDI_SYSEX_ARRAY_SIZE]

System Exclusive dedicated byte array.
Array length is stocked on 16 bits, in data1 (LSB) and data2 (MSB)

Definition at line 114 of file MIDI.h.

The type of the message (see the define section for types reference)

Definition at line 108 of file MIDI.h.

bool 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 116 of file MIDI.h.