Codebox Operators midiparse

midiparse

new midiparse([options])

Options

NameTypeDefaultDescription
bendmodeenumfloat

0 for Pitch Bend (0-127), 1 for Pitch Bend (-1. to 1.), 2 for Pitch Bend (-8192 to 8191)

Enum Values:
lores | float | hires

Methods

next(midiin): out1

Arguments

NameTypeDefaultDescription
midiinnumber

Returns

NameTypeDescription
out1list

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

reset(): void