pygame – using sound, mixer, volume, channels, fade-in and out effect .

PyGame module comes with sound feature and this allows users to test some effects.
The next source code will make a window and also will play a song.
After you can test all effects with python version 3.4.1.
Just see the keys from source code and test it. The song is an ogg file.
I used this sample from a recording of the album Through the Devil Softly by the artist Hope Sandoval and The Warm Inventions from here.
Let’s see the python script:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.