None
bool32 key pressed, no retrigger legato
bool32 key pressed, retrigger on legato
frac32.positive note-on velocity
frac32.positive note-off velocity
frac32.bipolar midi note number (-64..63)
combo mode
spinner channel
spinner highnote
spinner lownote
int8_t _note;
bool _gate;
bool _trg;
uint8_t _velo;
uint8_t _rvelo;
int chn;
_gate = 0;
_note = 0;
chn = attr_mode > 0 ? attr_channel - 1 : attr_midichannel;
outlet_note = _note << 21;
outlet_gate = _gate;
outlet_retrigger = _trg;
_trg = 0;
outlet_velocity = _velo << 20;
outlet_releaseVelocity = _rvelo << 20;
if ((status == MIDI_NOTE_ON + chn) && (data2) && (data1 >= attr_lownote) &&
(data1 <= attr_highnote)) {
_velo = data2;
_note = data1 - 64;
_gate = 1 << 27;
_trg = 1;
} else if (((status == MIDI_NOTE_ON + chn) && (!data2)) ||
(status == MIDI_NOTE_OFF + chn)) {
if (_note == data1 - 64) {
_rvelo = data2;
_gate = 0;
}
} else if ((status == chn + MIDI_CONTROL_CHANGE) &&
(data1 == MIDI_C_ALL_NOTES_OFF)) {
_gate = 0;
}