I am rather confused about how to implement this in my program on the receiving end. The code examples on MBS always feature these lists as a parameter to other functions, such as here. A more detailed example is MIDI Send, which however covers the send side of things.
Assuming I want a similar functionality (i.e. receive MIDI events), can I just initialize a new MIDIPacketList in the method of the function where I need it, or should this be done right after initializing the client, or somewhere else?