[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Python3 version packaged?



Am 21.03.2014 12:45, schrieb Jake b:
I tried to find what version SDL2 uses, but I didn't see any mention off
portmidi.

SDL has, to my knowledge, never included any MIDI interfacing. MIDI support was a PyGame addition.

PyGame should, IMHO, ditch the included pyportmidi module altogether and instead rely on a third-party package to provide MIDI support.

Pyportmidi is, as I mentioned, poorly maintained, portmidi itself is very limited in some aspects (e.g. no MIDI input callback-API) and library packages on major Linux distros have been poorly maintained as well. Including its own binding for an external library but then having to rely on the presence of said shared library on the system has no advantage over depending on a third-party Python package anyway, from a distribution viewpoint.

One could easily write a module for providing a pygame.midi backwards-compatible API to a third-party MIDI module. In fact, I'm doing that for my python-rtmidi [1] module right now.


Chris

[1] http://python.org/pypi/python-rtmidi