Inspiration
I always liked listening to music, and I wanted to do a project that not oly improved my skills in python but allow to do something music related as well. A music player just made sense
What it does
There is a file called music. In that file you put all the audio files that you want loaded into the program. As of right now the player only works with .mp3 and .wav files. After that you click on the song you want to play from the lists that is displayed in the GUI and hit play. The song will then start to play. If you want to stop music from playing, then you hit the stop button. If you want to go to the next song in the list or the previous one, you you hit the next and back buttons respectively. If you want to play a random song in the list, you hit shuffle.
How we built it
The project was made using python. The libraries used were playsound to play music, tkinter to make the GUI, multiprocessing to allow the music and GUI to operate simultaneously, random to allow the shuffle feature to work, re (regular expressions) for format the text in the music list, and os to get the names of the audio files in the music folder.
Challenges we ran into
It was very difficult trying to figure out how to get the GUI and music to operate at the same time. Before this the GUI wouldn't work until whatever was playing finished. I never worked functions running in parallel before so it was difficult to understand and wrap my head around.
Accomplishments that we're proud of
I'm proud that I was able to use regular expressions. I learned them in school and I had trouble figuring out how they may be useful. The fact that I saw an issue and was not only able to remember this concept but apply it in the solution was very rewarding
What we learned
I learned how to run functions simultaneously which was a very interesting and useful concept to be introduced to.
What's next for Music Player
I would like to get a pause feature to work instead of just having the music stop entirely. I would also like to try and use a different library for playing the music that will allow me to do that. I'd also like to get the music player to work with .m4a files.
Log in or sign up for Devpost to join the conversation.