http://soundfarmer.com/content/code/coreaudio/coreaudio.pyx
And here is the simple driver python script:http://soundfarmer.com/content/code/coreaudio/catest.py
You compile the pyrex to a c file, and then there is a setup script which will build the extension module:http://soundfarmer.com/content/code/coreaudio/setup.py
Other links:
http://aldebaran.armory.com/~zenomt/macosx/ http://www.mat.ucsb.edu/~c.ramakr/illposed/craudiounits.htmlhttp://www.pete.yandell.com/software/pymidi/Read%20Me.html