Native USB Port of DUE loses data

See if moving the flush() outside the loop helps like so.

for (int j = 0; j < 5; j++) {
   midiEventPacket_t control = {0x0B, 0xB0 | j, controlData[0][j], controlData[1][j]};
   MidiUSB.sendMIDI(control);
}
MidiUSB.flush();