Play Music in c#!
The app automatically scans your music directory for music (in .mp3 form only) and starts playing.
The goal for this app is to be a simple music player. You run it, and forget about it (that is, unless you don't like the music being played). Sometimes when I'm coding, I like a bit of music playing, and this is the perfect app for that.
Within the UI, you can see the current song name, album and contributing artists, see time elapsed/total time, skip the current song, pause/play the current song and enable/disable shuffle mode.
in the UI, there is an arrow. This allows you to toggle between a "mini" and "larger" mode. In mini mode, only the controls and song name are shown. In the larger mode, a song list is shown and you can also select a song that you want to listen to.
You can use the media keys to play/pause or skip the current song. (Only Play/pause and skip work, no skipping backwards or stopping or volume).
Please note that this functionality does technically mean that there is a keylogger built into this app to detect when a media key is pressed, but solely for that purpose. Nothing is done in this app if the key pressed isn't a media key. Luckily, it's open source, so if you don't trust me (which I sure hope you do!), you can examine the source code.
PlayMusic uses id3 tags to determine the artists, song title, genres, and album titles. If you want to edit these values, simply click on the cell that you want to edit. Afterwards, be sure to save your changes using File > Save
. Make sure you aren't listening to the song you edited when you're saving though!
Shuffle is the difference between going to a random song and going to the next song on the list.
If you want to change the default music scan directory, you can either put a file named config.txt
(with the first line being the folder path, and other lines being anything you want) in the same folder as PlayMusic, and PlayMusic will automatically use that when starting.
Alternatively, you can also use the File > Change Music Location
menu to select another folder to scan.
Mini mode:
Larger mode:
You can compile the source, or you can download the zip file of the bin folder here. The current (stable) version is v2.1. Other releases can be found on the releases page.