int32 startnote
bool32 g0
bool32 g1
bool32 g2
bool32 g3
bool32 g4
bool32 g5
bool32 g6
bool32 g7
int32 startnote
bool gate[128];
uint8_t start;
start = (param_startnote + inlet_startnote);
outlet_g0 = gate[start];
outlet_g1 = gate[start + 1];
outlet_g2 = gate[start + 2];
outlet_g3 = gate[start + 3];
outlet_g4 = gate[start + 4];
outlet_g5 = gate[start + 5];
outlet_g6 = gate[start + 6];
outlet_g7 = gate[start + 7];
if ((status == MIDI_NOTE_ON + attr_midichannel) && (data2))
gate[data1] = 1;
if (((status == MIDI_NOTE_ON + attr_midichannel) && (!data2)) ||
(status == MIDI_NOTE_OFF + attr_midichannel))
gate[data1] = 0;