struct MIDIPacket

Allows a MIDIPacket to be iterated through with a for statement. This is necessary because MIDIPacket can contain multiple midi events, but Swift makes this unnecessarily hard because the MIDIPacket struct uses a tuple for the data field. Grrr!

Example usage: let packet: MIDIPacket for message in packet { // message is a Message }