Re: [pygame] Pygame + Jack?

2011-02-21 Thread Brian Gryder
be to route it through alsa. > http://jackaudio.org/routing_alsa > > Here is the jack plugin for alsa... > http://alsa.opensrc.org/Jack_%28plugin%29 > > > > Have you tried changing the to use key down event? Since there is latency > from when you hit the key,

Re: [pygame] Pygame + Jack?

2011-02-18 Thread Brian Gryder
you. On Wed, Feb 16, 2011 at 2:43 PM, Greg Ewing 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 bu

[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 ap

[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 L

[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 t

Re: [pygame] detectng midi events in pygame?

2010-12-17 Thread Brian Gryder
ote: > Hi Brian, > > The pygame midi.py example has an input event display mode. > > python -m pygame.examples.midi -i > > 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,

[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 sugge

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

2010-12-12 Thread Brian Gryder
pygame.display.update() elif event.type == QUIT: exit() #------ On Sun, Dec 12, 2010 at 6:34 PM, Greg Ewing wrote: > Brian Gryder wrote: > > There is a noticeable lag between the key press eve

[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

[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 met

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

2009-07-10 Thread Brian Gryder
rom 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. >> >>

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

2009-07-09 Thread Brian Gryder
ygame.mixer.quit > for each pass 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 Py

[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