LinkedInTwitterFacebook

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

PyGame module come with sound feature and this allow 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 a 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: