Fix some endian issue with the MIDI plug-in.
More fiddling with structs.