I am writing a program that converts OSC to MIDI, allowing OSC-enabled applications (like touchOSC on my iPhone) to control MIDI-enabled applications (Sibelius, Ableton Live, etc.).
I use Python to create an OSC server and convert from OSC to MIDI. To get the MIDI for the application in question, I output the MIDI to the Apple IAC driver, which is then included as an input in the program in question.
Does anyone know a means to programmatically configure Mac MIDI devices programmatically? In particular, I need to enable the IAC driver, which is disabled by default.
Using FileMon, I noticed that Audio Midi Setup.app modifies this file when IAC driver is enabled / disabled:
~ / Preferences / ByHost / com.apple.MIDI.0017f2cxxxxx.plist
The number 0017f2cxxxxx is my system IOPlatformUUID. This is a simple list of XML properties, but I am afraid to write directly to it. Even if I did, apparently, would I have to persuade the midi server process to re-read it somehow?
Finally, I am becoming more and more aware that using the IAC driver is generally a fairly primitive solution - for starters, it only works on a Mac! Ideally, I would write a feedback MIDI driver, and all my problems would be solved ...
source share