Search code examples
pythonpygamepyaudiomixer

How can I create a Xylophone program using pygame mixer or pyaudio?


I want to create a Xylophone using pygame. I have created the image and split the image according to different notes. I need to upload sounds to those particular note sections of xylophone. Please help me with adding sounds.


Solution

  • I used pyaudio and wave library(built in library) along with pygame to create xylophone.Pyaudio has advanced tools for audio processing as compared with pygame mixer.

    You can refer my code here:

    https://github.com/hackmaster0110/Xylophone/tree/master/PurePython