A newer version of Max is available. Click here to access the latest version of this document.

midiparse

Interpret raw MIDI data

Description

midiparse will separate raw MIDI bytes by message type

Arguments

None.

Messages

bang Clears the midiparse object's memory of any partial MIDI message received up to that point.
int MIDI-message-bytes [int]
Numbers received in the inlet are treated as bytes of a MIDI message (usually from a seq or midiin object). The status byte determines the outlet which will be used to output the data bytes.
float MIDI-message-bytes [float]
Converted to int.

Information for box attributes common to all objects

Output

int: Out 4th outlet: The number is a program change.

Out 5th outlet: The number is an aftertouch (channel pressure) value.

Out 6th outlet: The number is a pitch bend value.

Out rightmost outlet: The number is the MIDI channel number.
list: Out leftmost outlet: A note-on message. The first number is a pitch value and the second number is a velocity value.

Out 2nd outlet: A polyphonic key pressure message. The first number is an aftertouch (pressure) value and the second number is a pitch value (key number).

Out 3rd outlet: A control message. The first number is a control value and the second number is a controller number.

Examples

Interpret the meaning of MIDI messages and filter different types of data

See Also

Name Description
borax Report current information about note-ons and note-offs
midiformat Prepare data in the form of a MIDI message
midiselect Select and interpret raw MIDI data
midiin Output received raw MIDI data
midiinfo Set a pop-up menu with names of MIDI devices
Max MIDI Tutorial 3: MIDI Parsing Max MIDI Tutorial 3: MIDI Parsing