<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>
<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY.-->
<c74object module="rnbo" kind="rnboobject" name="midiparse" category="MIDI">
<!--METADATA-->
<metadatalist>
<metadata name="author">Cycling '74</metadata>
</metadatalist>
<digest>Interpret raw MIDI data</digest>
<description><p>
Separates raw MIDI bytes into standard numerical messages. This object works particularly well parsing the output of the 
<o objname="rnbo_midiin">midiin</o>
 object.
</p></description>
<!--ARGUMENTS-->
<!--NONE-->
<!--OPTIONS-->
<rnbooptionlist>
<option name="bendmode" size="1" type="enum">
<digest>0 for Pitch Bend (0-127), 1 for Pitch Bend (-1. to 1.), 2 for Pitch Bend (-8192 to 8191)</digest>
<attributelist>
<attribute name="enumvals">
<enumlist get="1" set="1" type="atom">
<enum name="lores"></enum>
<enum name="float"></enum>
<enum name="hires"></enum>
</enumlist>
</attribute>
<attribute name="default" type="enum" value="float"></attribute>
</attributelist>
<description><p>
The hires attribute is used to support high-resolution pitch bend scaling. When the attribute is set to 0 (default), 
<o objname="midiparse">midiparse</o>
 will accept and output pitch bend integer values in the standard MIDI range of 0 to 127. When the attribute is set to 1, it accepts high resolution MIDI data and outputs float values in the range of -1 to 1. When the attribute is set to 2, it accepts high resolution MIDI data and outputs integer values in the range of -8192 to 8191 (standard 14-bit MIDI high resolution pitch bend range).
Possible values:
</p>
<p>
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 )
</p></description>
</option>
</rnbooptionlist>
<!--ATTRIBUTES-->
<rnboattributelist>
<attribute name="midiin" size="1" type="number">
<digest>MIDI Message Input</digest>
<description><p>
Numbers received in the inlet are treated as bytes of a MIDI message (usually from a 
<o objname="rnbo_midiin">midiin</o>
 object). The status byte determines the outlet which will be used to output the data bytes.
</p></description>
</attribute>
</rnboattributelist>
<!--INLETS-->
<rnboinletlist>
<inlet id="inlet_midiin" name="midiin" type="number">
<digest>MIDI Message Input</digest>
<description><p>
Numbers received in the inlet are treated as bytes of a MIDI message (usually from a 
<o objname="rnbo_midiin">midiin</o>
 object). The status byte determines the outlet which will be used to output the data bytes.
</p></description>
</inlet>
</rnboinletlist>
<!--OUTLETS-->
<rnbooutletlist>
<outlet id="outlet_noteonoroff" name="noteonoroff" type="list">
<digest>Note-on or Note-off (list: pitch, velocity)</digest>
<description><p>
Out leftmost outlet: A note-on or note-off message. The first number is a pitch value and the second number is a velocity value. The message is a note-off message when the second number is 0.
</p></description>
</outlet>
<outlet id="outlet_polypressure" name="polypressure" type="list">
<digest>Poly Key Pressure (list: Key, Value)</digest>
<description><p>
Out 2nd outlet: A polyphonic key pressure message. The first number is a key (note) number and the second number is an aftertouch (pressure) value.
</p></description>
</outlet>
<outlet id="outlet_controlchange" name="controlchange" type="list">
<digest>Control Change (list: Controller Number, Value)</digest>
<description><p>
Out 3rd outlet: A control message. The first number is a controller number and the second number is a control value.
</p></description>
</outlet>
<outlet id="outlet_programchange" name="programchange" type="number">
<digest>Program Change</digest>
<description><p>
Out 4th outlet: The number is a program change.
</p></description>
</outlet>
<outlet id="outlet_aftertouch" name="aftertouch" type="number">
<digest>After Touch</digest>
<description><p>
Out 5th outlet: The number is an aftertouch (channel pressure) value.
</p></description>
</outlet>
<outlet id="outlet_pitchbend" name="pitchbend" type="number">
<digest>Pitch Bend. (0 to 127) when bendmode == 0, (-1. to 1.) when bendmode == 1 and (-8192 to 8191) when bendmode == 2.</digest>
<description><p>
Out 6th outlet: The number is a pitch bend value, with a range dependent on the 
<o objname="@bendmode">@bendmode</o>
 attribute.
</p></description>
</outlet>
<outlet id="outlet_channel" name="channel" type="number">
<digest>Set MIDI Channel</digest>
<description><p>
Out 7th outlet: The number is the MIDI channel number.
</p></description>
</outlet>
</rnbooutletlist>
<!--SEE ALSO-->
<seealsolist>
<seealso name="midiparse" type="refpage" module="Max"></seealso>
<seealso name="rnbo_midiin" type="rnborefpage" module="RNBO" display="midiin"></seealso>
<seealso name="rnbo_midiformat" type="rnborefpage" module="RNBO" display="midiformat"></seealso>
<seealso name="rnbo_noteout" type="rnborefpage" module="RNBO" display="noteout"></seealso>
</seealsolist>
</c74object>