Hi Pi,
actually on OS X you only have to enumerate the existing MIDI-ports via CoreMIDI and use one (or more) of those
for your application.
Then it would make no difference whether that port is a "real" hardware based MIDI-ports (a USB-midi-interface
for example), a software-MIDI-port (IAC) or a network-MIDI-port.
As there is no AMS for iOS yet, you would need to create network-MIDI ports yourself programmatically.
So when you use CoreMIDI, you will be able to connect to other Macs and iOS (4.2) based devices via network.
You could even connect to hardware-devices like the Kiss-Box (www.kissbox.com), which supports Apple network
MIDI (though no Bonjour yet - you would need to create a manual peer by specifying IP-address & port).
Or your could connect to Windows based PCs using my rtpMIDI driver (www.tobias-erichsen.de/rtpMIDI.html)
Best regards,
Tobias
Von: coreaudio-api-bounces+erichsen=email@hidden [mailto:coreaudio-api-bounces+erichsen=email@hidden] Im Auftrag von Pi
Gesendet: Mittwoch, 8. Dezember 2010 11:21
An: email@hidden
Betreff: Connect to MIDI sessions not created by AMS ( what are the alternatives? ) [bcc][adr-fake]
I have just been looking at some MIDI code.
to get it working, first I launch AMS ( audio MIDI setup utility from utils ), then I create a new session, allowing anyone to connect to it.
now I make a note of the IP, manually put this into the code, launch the code in the simulator.
and AMS registers a new connection.
apparently AMS is broadcasting a Bonjour network. so I can see that with a little work I could configure the code to listen, and take action as soon as it detects the network.
but this would only make my code work for MIDI sessions that have been created Using AMS, or some other Bonjour server
* Are there any other MIDI session servers that use Bonjour?
* Can I spawn a Bonjour network from other operating systems? how about Windows? Linux?
* How about the ones that don't? I'm guessing there is a lot of windows stuff that doesn't. I'm guessing there are maybe special stand-alone devices that don't. so what is out there? What are the alternatives to AMS? and who is using what?
How do I make a generic MIDI app that is going to plug into say 90% of users' MIDI scenarios? what's my best plan of attack? can I get away with just coding for Bonjour servers?
it looks as though I just need a bit of code to extract the target IP & port, and then it is over to CoreMIDI to take it from there
so I guess it wouldn't be a huge amount of work even to cope with half a dozen different MIDI server technologies...