Re: [pygame] Midi Crashes on Error

2013-11-04 Thread Lenard Lindstrom
On 13-11-03 09:57 AM, Christopher Arndt wrote: Hi Lenard, On 02.11.2013 02:25, Lenard Lindstrom wrote: Just wondering, if the Python level callback is found to be too slow, could a C level callback mechanism be provided? how would you suggest this should be used? From Python or C? In python-r

Re: [pygame] Midi Crashes on Error

2013-11-03 Thread Christopher Arndt
Hi Lenard, On 02.11.2013 02:25, Lenard Lindstrom wrote: > Just wondering, if the Python level callback is found to be too slow, could a > C level callback mechanism be provided? how would you suggest this should be used? From Python or C? In python-rtmidi this is currently not possible from Pyth

Re: [pygame] Midi Crashes on Error

2013-11-02 Thread William Heatley
Hello Chris, Thank you for the response! You're right, this seems to be a Distro/PortMidi problem. I guess I'll track down the portmidi package maintainer(s) and see what they have to say. Thanks again, ~William On Fri, Nov 1, 2013 at 5:39 AM, Christopher Arndt wrote: > On 01.11.2013 09:52,

Re: [pygame] Midi Crashes on Error

2013-11-01 Thread Lenard Lindstrom
Hello William, PortMidi is a nuisance. I do Pygame development on a Ubuntu derived Gnu/Linux distribution, and had to build a custom PortMidi library for use with Pygame. Lenard Lindstrom On 13-11-01 01:52 AM, William Heatley wrote: Python: 2.7.4 PyGame: 1.9.1release OS: Ubuntu 13.04 Probl

Re: [pygame] Midi Crashes on Error

2013-11-01 Thread Lenard Lindstrom
Hi Chris, python-rtmidi looks great. It should replace pyportmidi as the Pygame midi backend. In particular, I like the midi event callback which rtmidi provides. This will allow midi events to be tied into SDL events. Just wondering, if the Python level callback is found to be too slow, could

Re: [pygame] Midi Crashes on Error

2013-11-01 Thread Christopher Arndt
On 01.11.2013 09:52, William Heatley wrote: > Suggested Solution: > Do not define PM_CHECK_ERRORS. This is defined in the underlying portmidi library, which AFAIK is linked dynamically. So it is up to your OS to provide a version of libportmidi without PM_CHECK_ERRORS defined. This has been a long

[pygame] Midi Crashes on Error

2013-11-01 Thread William Heatley
Python: 2.7.4 PyGame: 1.9.1release OS: Ubuntu 13.04 Problem: Any call to the pygame.midi functions which cause PortMidi to return an error, will cause the entire program to exit (at the C level; no exceptions reach Python). In the PortMidi interface code, "pm_errmsg" calls prompt_and_exit. This