Thanks for all the kind feedback.
I have been updating the MIDI code with a few structural tidy-ups, and an often requested feature - the ability to use networked MIDI sessions (connections).
Doing it manually: Using networked MIDI connections
iOS provides some a neat networked MIDI connection facility. However, despite being easy to set up, network MIDI sessions aren't initially obvious.
First, you must include:
Because network sessions are not included in the umbrella CoreMIDI.h include file. Sigh.
Next you must establish a network session by winking the (evil) singleton instance into existence:
MIDINetworkSession* session = [MIDINetworkSession defaultSession];
Then, merely turn it on:
session.enabled = YES;session.connectionPolicy = MIDINetworkConnectionPolicy_Anyone;
Yes, that is all.
Documentation for MIDINetworkSession is available here.
The easy way: using PGMidi
If you're using my MIDI classes, then you can just call the PGMidi class' enableNetwork: method with YES or NO.
Get the code
The latest version of my MIDI interface code, and a sample project that shows it in action is available from the GitHub project page.
Feedback, as ever, is welcomed.