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

midiparse Reference

Interpret raw MIDI data

midiparse

Description

Separates raw MIDI bytes into standard message types. This object works particularly well formatting the output of the midiin and seq objects.

Examples

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

Arguments

None.

Attributes

hires [int] (default: 0)7.2.0

An integer in the range 0 - 2 sets the range used for pitch bend messages by the midiparse object.

Possible values:

0 = 'Off (0-127)' ( Standard 8-bit MIDI pitch bend range (default) )
1 = 'Float (-1 to 1)' ( Uses pitch bend messages in the audio signal range )
2 = '14-bit Fixed (-8192 to 8191)' ( Standard 14-bit MIDI high resolution pitch bend range )

Common Box Attributes

Messages

bang

Clears the midiparse object's memory of any partial MIDI message received up to that point.

int

Arguments

byte [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

Arguments

byte [float]
Converted to int.

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 7th 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.

list

Out rightmost outlet: A formatted midievent message for use with the vst~ object.

See Also

Name Description
MIDI MIDI
borax
midiin
midiinfo
midiselect
mpeconfig
mpeformat
mpeparse
noteout
polymidiin
sxformat
xbendout
xnoteout
Max MIDI Tutorial 3: MIDI Parsing Max MIDI Tutorial 3: MIDI Parsing