midiparse
new midiparse([options])
Options
Name | Type | Default | Description |
---|---|---|---|
bendmode | enum | float | 0 for Pitch Bend (0-127), 1 for Pitch Bend (-1. to 1.), 2 for Pitch Bend (-8192 to 8191) |
Methods
next(midiin): out1
Arguments
Name | Type | Default | Description |
---|---|---|---|
midiin | number |
Returns
Name | Type | Description |
---|---|---|
out1 | list | returns a list containing: -1 (Nothing detected); 0 (Note-on or Note-off), pitch, velocity, channel; 1 (Poly Key Pressure), key, value, channel; 2 (Control Change), controller number, value, channel; 3 (Program Change), value, channel; 4 (After Touch), value, channel; 5 (Pitch Bend), value, channel; at the end there will always be the 3 raw MIDI data bytes appended |