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

Re: [pygame] pygame sound generation examples



I have written a Simple Music Education tool using Pygame sound (No numpy). LearnMusic which uses Internal MIDI. I will try these libraries that Rene has pointed out with an external MIDI device to check if real time playing is possible.

On 10 April 2018 at 23:46, Emerson Leon <emersonleon@xxxxxxxxx> wrote:

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,



--
http://www.diliupg.com

**********************************************************************************************
This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
**********************************************************************************************