[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame sound generation examples



Hi! I definitely would be interested to see more things in this direction. Video game music can be often something simple that you can even program, but also it is great to be able to create ear training games, music composing and all kind of interactive music programs.
Once I tried to make a keyboard with pygame sending midi output to a chuck program, but there were some problems with the time reaction of the keys...
It would be great to have libraries for these kind of things. Thanks for sharing and for your work in cool projects!

On Mar 14, 2018 9:20 AM, "René Dudfield" <renesd@xxxxxxxxx> wrote:
Hi,

here's some sound generation examples with pygame, and no numpy.

All the basics for making a music program (sampler/synth).
  - some sample rate conversion,
  - bit rate conversion
  - tone generation using generators (square wave)
  - python arrays used as buffers for pygame.Sound (zero copy).

http://renesd.blogspot.com/2018/03/sound-generation-pygame-examples.html

Please let me know if there's interest in expanding this example, or explaining things properly?



cheers,