Re: [pygame] Pygame + Jack?

2011-02-18 Thread Brian Gryder
, 2011 at 2:43 PM, Greg Ewing greg.ew...@canterbury.ac.nzwrote: 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

[pygame] Pygame + Jack?

2011-02-15 Thread Brian Gryder
I wrote this simple drum pad program with pygame and the lag between key presses and the start of the sound bugs me. Can I use JACK with pygame so there will be less latency (in the same way that SooperLooper+Jack in Ubuntu is super fast)? Any code snippets or links to articles would be greatly

[pygame] Sound Queuing/Looping Program with MIDI Input.

2010-12-22 Thread Brian Gryder
Hi, I wrote a pygame program that play, loop and queue sounds files. My goal was to keep it short, simple and only one file. The installation and operation instructions are on the bottom of the file. Please see the code below and let me know if you have any suggestions for improvement. Thank you

[pygame] pygame.mixer.Channel - Name of the sound that is currently playing?

2010-12-19 Thread Brian Gryder
Hi, I am working on a program that queues and loops sound files through one pygame mixer channel. I want to display a message that notifies the users if they queue the same sound file that is currently playing. How do you get the name of the file that is currently playing? Perhaps something like

Re: [pygame] detectng midi events in pygame?

2010-12-17 Thread Brian Gryder
It is in the examples subdirectory in the pygame package directory. Unfortunately, the PortMidi with pygame.midi wraps does not have a midi event callback option, so midi events must be polled. Lenard Lindstrom On 15/12/10 03:19 PM, Brian Gryder wrote: How can I detect midi events

[pygame] detectng midi events in pygame?

2010-12-15 Thread Brian Gryder
How can I detect midi events in pygame? I am able to detect the count of MIDI devices and input and output device names (see program below) I'd like to display the midi note names like C3 ON or D3 OFF. I am using the JACK Audio Connection Kit. Any code snippets, links to articles, or suggestions

[pygame] Noticeable lag between key press events and sound events

2010-12-12 Thread Brian Gryder
I am experimenting with playing/changing drum loops with pygame. In the program below, beat1.wav is played when the up arrow key is pressed and beat2.wav is played when the down arrow key is pressed. There is a noticeable lag between the key press events and the sound changes. I am running the

Re: [pygame] Noticeable lag between key press events and sound events

2010-12-12 Thread Brian Gryder
() #-- On Sun, Dec 12, 2010 at 6:34 PM, Greg Ewing greg.ew...@canterbury.ac.nzwrote: Brian Gryder wrote: There is a noticeable lag between the key press events and the sound changes. Have you tried reducing the size of the sound buffer? It seems that the pygame mixer

[pygame] pygame metronome

2010-07-27 Thread Brian Gryder
I am working on writing a metronome with Pygame. http://www.pygame.org/project-Innep+Metronome-1594-2808.html Here is a screenshot: http://www.pygame.org/shots/1594.png I am using print \a as the metronome click sound. I am using the pygame.time.Clock() to move the position of the metronome

Re: [pygame] Incrementing the frequency of the Pygame.mixer with a Loop?

2009-07-10 Thread Brian Gryder
...@telus.net wrote: Hi, You have pygame.quit instead of pygame.quit() . Lenard Brian Gryder wrote: Thanks for the reply Lenard, I tried your suggestion and the pitch is still not changing as the frequency increments with the loop. This is a strange issue. if I manually change the value

Re: [pygame] Incrementing the frequency of the Pygame.mixer with a Loop?

2009-07-09 Thread Brian Gryder
of the loop. The pgyame.display.set_mode must also come after the pygame.init. The display is not necessary for mixer though. Lenard Brian Gryder wrote: ''' How do I change the frequency of the Pygame.mixer by incrementing the frequency value in a loop? Please see the example below where I am

[pygame] Incrementing the frequency of the Pygame.mixer with a Loop?

2009-07-07 Thread Brian Gryder
''' How do I change the frequency of the Pygame.mixer by incrementing the frequency value in a loop? Please see the example below where I am trying to initialize the frequency at 44100 and then add 2000 to the frequency each time it loops. In this example below the pitch does not change, I really