Skip to content

Enprogames/MusicPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Music Player

A simple program written in python for playing music. Tkinter was used to create the user interface, pygame.mixer.music was used for playing song files, and mutagen was used for gathering metadata about the song files.

music-player1

Installation

  1. Clone repository: git clone https://github.com/Enprogames/MusicPlayer.git

  2. Create new virtual environment using venv

    1. Linux: python3 -m venv venv --prompt music-player
    2. Windows: python -m venv venv --prompt music-player
  3. Activate the virtual environment:

    1. Linux: source venv/bin/activate
    2. Windows: source venv/Scripts/activate
  4. Now that you're in the virtual environment, install the requirements: pip install -r requirements.txt

Usage

Navigate to root of project, then run python.exe src/main.py to run the program.

Problem

There doesn't seem to be a decent python sound library. This project mostly uses pygame's mixer module, which allows for many useful functions when working with sound. Unfortunately, it works slightly differently on Windows and Linux. It doesn't support playback of MP3 files on linux, and it also doesn't allow for changing the playback position of wave files on any platform.

Functionality

  • Change volume
  • Pause
  • Get and set location of song

About

A simple python music player.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages