Re: [pygame] detectng midi events in pygame?

2010-12-17 Thread Lenard Lindstrom
Hi, See below: On 17/12/10 05:13 PM, Brian Gryder wrote: #--start miditest.py-- import pygame import pygame.midi from pygame.locals import * [snip some code] print "exit button clicked." i.close() Replace i.close() with del i pygame.midi.quit() pygame.quit() exit

Re: [pygame] detectng midi events in pygame?

2010-12-17 Thread Brian Gryder
""" Thanks for your reply Lenard, I looked at the examples and created this working program (see program below). When I close the program, this error message appears in the terminal: PortMidi call failed... PortMidi: `Bad pointer' type ENTER... What can I change in the program to avoid the "Po