Hi,
I don't know the specific circumstances that required
pygame.mixer.pre_init(). But according to the docs (python -m
pyagme.docs will display the docs in the default browser) the
requirement was that pgyame.mixer was initialized after the display. So
I suppose you can initialize pygame and
pygame.quit() worked! I can now hear the pitch changing, Thanks!
Is there a way to do this without closing the pygame window everytime it
loops?
Here is the working code with the pygame window closing and reopening each
loop:
import pygame
from pygame.local
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 if frequency
before I r
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 if frequency before
I run it, the sound changes. it is as if the pygame.mixer's parameters are
"Stuck"and can
Hi Brian,
You would probably have to do a pygame.quit rather than
pygame.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 th
'''
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