Hi René, René Dudfield schrieb: > you might be interested in pygame which has portmidi for python now in > svn (currently based on pyportmidi, but with a wrapper to make it use > more pep-8 like API).
I'm aware of the existence of pyportmidi, but I find the idea of a ctypes-based Python interface more attractive, since you don't have to compile it for every OS and Python version, as long as a (working!) dynamic portmidi DLL is available. So I tried portmidizero [1], but its interface closely matches the C portmidi API and was not very pythonic or PEP-8 compliant, so I kind of did the same thing you did with pyportmidi and started to adapt it to my needs. I haven't really published this yet or even told the original author of portmidizero about it, but you can find the in-development version of it at the link I posted in my last port. So far it's working under Linux (with the fixed debian package) and OS X, but under Windows I get strange BadPointer errors from PM_Poll(), which I still have to investigate. > We also have some scripts for building portmidi on windows linking to > the correct C libraries for different python versions (2.4,2.5, 2.6,3). That's the work I was trying to avoid by going the ctypes route. > Pre release builds for win/mac (pygame.midi pygame.examples.midi). > http://thorbrian.com/pygame/builds.php > svn if you'd like to browse for the building code: > http://www.pygame.org/wiki/svn Thanks for sharing this! Chris [1] http://gitorious.org/portmidizero _______________________________________________ media_api mailing list media_api@create.ucsb.edu http://lists.create.ucsb.edu/mailman/listinfo/media_api