Thank you all for the replies, I verified there was no empty space on the ends of the sound file and reduced the buffer size. René, that is a great tutorial on midi and jack. I was able to get midi connectivity with the pygame.midi functions.
i found this example of C code that uses jack: http://trac.jackaudio.org/browser/trunk/jack/example-clients/metro.c Is it possible to download the source files like "jack.h" and "transport.h" in the pygame file's folder then somehow import it and call a function to make my program appear the in qjackctl dialog boxes? Thank you. On Wed, Feb 16, 2011 at 2:43 PM, Greg Ewing <greg.ew...@canterbury.ac.nz>wrote: > Brian Gryder wrote: > >> I wrote this simple drum pad program with pygame and the lag between key >> presses and the start of the sound bugs me. >> > > Have you tried reducing the size of the sound buffer? > Too large a buffer seems to be a known cause of latency > when using the pygame mixer. > > -- > Greg >