News for hackers. Stuff that matters.
Re:My Quest to Build the Ultimate Music Player by asgard1024 on Tuesday April 22, 2014 @02:19PM (#7629373)
I also had a quest to build the ultimate music player. My motivation was that most music players got complicated to the point I was unable to use them.

My player is 200 lines of Python, utilizing MPD and Qt (for Docker icon), and has about 3 features. It plays all the mp3 in a directory (including subdirs) randomly, and you can "like" or "dislike" song, which modifies the probability of it being played (and these data are remembered in MPD database). Also has "pause" and "next song" buttons (from the tray menu) and that's it, literally.

To each his own, but that's my personal definition of "ultimate".

Re:My Quest to Build the Ultimate Music Player by JTon on Tuesday April 22, 2014 @02:33PM (#7629455)
Sounds good to me too. I'd like to set a "mood" as well. The probabilities for each track adjust based on the mood selected (aside: in the future the mood selection will be automatically and accurately determined via bio-sensors :)
Re:My Quest to Build the Ultimate Music Player by aaronem on Tuesday April 22, 2014 @03:17PM (#7629742)
I'd try something like that, but most of what I listen to is from the common-practice era, so the quantum of content is not an individual file, but a playlist. "Shuffle" therefore doesn't work for me; what I really need is a player whose playlists can contain either individual files or other playlists.

I wouldn't have thought this would be all that outré a desire, but apparently everyone who's ever implemented a music player disagrees with me...

Re:My Quest to Build the Ultimate Music Player by maxerickson on Tuesday April 22, 2014 @03:46PM (#7629939)
Foobar 2000 has a 'Shuffle Albums' mode. I guess other players would too.

Even if your music doesn't quite fit into that box, it could be abused to do what you want (multi song collections turn into albums given the same album name, a single file has some other album name so is it's own album).

I made sure to check that the mode respects order within the albums.

Edit: And you can tweak the album grouping, so you wouldn't have to destroy album tags to make it work, just use some custom tag for the grouping.

Re:My Quest to Build the Ultimate Music Player by aaronem on Tuesday April 22, 2014 @03:54PM (#7629990)
I should've mentioned earlier that I've run across that and found it not really suitable for my purposes; I have close to a hundred gigabytes of music, much of which is not properly tagged so that "Shuffle (albums)" does what I want. It's also not broken down into directories by piece (a lot of it's in FLAC/CUE-per-album format, and one album usually contains several pieces), so "Shuffle (directories)" wouldn't work either.

I appreciate you taking the time to mention it, though, all the same.

Edit in re: to your edit: True, but even so, I can't see a way of making that work that doesn't involve many hours of manual tagging effort, which is something I'm sort of trying to avoid.

Re:My Quest to Build the Ultimate Music Player by maxerickson on Tuesday April 22, 2014 @04:18PM (#7630148)
Yeah, bad tags are a problem and they aren't any fun to fix.

I would think that you could mechanically recognize many of the multi track pieces though (and then just dump some identifier in a grouping tag). So it's "just" a scripting problem, at least if you ignore finding decent and reliable libraries to do the tagging.

Re:My Quest to Build the Ultimate Music Player by aaronem on Tuesday April 22, 2014 @04:30PM (#7630228)
Sure, I could do that, and I don't mind driving command-line tools to do the tag modification so that's no real problem, but even with a 99.9% success rate, the size of my music library makes manually fixing up the ones that don't come out right a considerable task -- to say nothing of identifying them in the first place, another problem which doesn't really admit of easy programmatic solution.

In theory, I suppose I should just block out a weekend day or so, put on my headphones, and bite the bullet. But being able to add playlists, as playlists, to playlists, would neatly solve the problem without requiring me to spend a day engaged in such drudgery, and would offer other UI benefits besides. What I've got right now works well enough to be going on with for most of my purposes, and I suppose I just keep hoping someone will come along and satisfy my now rather forlorn hopes as to the rest.

Re:My Quest to Build the Ultimate Music Player by DanBC on Tuesday April 22, 2014 @06:29PM (#7630899)
There is a niche for some kind of service to fix tags and file names.

I too have many GB of files with odd file names and bad tagging, and I'd love a sensible way to fix it.

Re:My Quest to Build the Ultimate Music Player by maxerickson on Tuesday April 22, 2014 @06:58PM (#7631022)
I never decided I trusted the default MusicBrainz tagger, but they are working on the problem.

Beets was posted here a while ago:

https://news.ycombinator.com/item?id=7337021

http://beets.radbox.org/

It can pull data from MusicBrainz and people seem pretty happy with it in that thread.

Re:My Quest to Build the Ultimate Music Player by drenei on Tuesday April 22, 2014 @03:35PM (#7629867)
Not sure if you're on the OS X / iTunes ecosystem...

You can have a playlist that is made up of other playlists by creating a smart playlist and adding a rule that includes songs from source playlists of your choice. This will atomically include any changes you make to the source playlists.

I manage my music with genres — and to a large part, stay away from smart playlists — however they can be a powerful feature.

Re:My Quest to Build the Ultimate Music Player by aaronem on Tuesday April 22, 2014 @03:49PM (#7629963)
I no longer have an OS X box, but I do have iTunes installed on my Windows machines in support of various pocketable devices of Cupertinian provenance.

I've never actually tried using iTunes as a music player, so I didn't know about the capability you describe, and I appreciate you pointing it out to me.

Unfortunately, it doesn't sound as though it would satisfy my requirement; while I can see some use in an automatically updated playlist consisting of tracks from the playlists I designate, almost all of my (near 100GB) music library consists of pieces which are broken up into a single track per movement. This being the case, it doesn't sound like a smart playlist would solve the "shuffle" problem of jumping from (e.g.) one piece's third movement to another piece's second, any more than any other sort of playlist does.

If I can define a smart playlist whose members are other playlists, of course, that's a different matter, and I'll have to take a look and see whether I actually can do that. It doesn't seem too likely, though; as I said elsewhere, I'm not sure why the idea of a playlist containing other playlists is so apparently strange to music player implementers, but I've yet to find anything with the capability. (I'm not sure whether they're afraid of graph cycles, but I'm also not sure whether those would actually pose a problem, and even if they did, it shouldn't be too hard to exclude them by checking at "add to playlist" time and refusing to complete the task if it would create a cycle in the graph.)

Re:My Quest to Build the Ultimate Music Player by fragmede on Tuesday April 22, 2014 @03:11PM (#7629698)
> utilizing MPD

Yeah, that's a non-starter for reasons that are well described in the post. (But to each their own.)

Re:My Quest to Build the Ultimate Music Player by eikenberry on Tuesday April 22, 2014 @04:28PM (#7630211)
The only substantive criticism of MPD in the article was it oddly choosing APEv2 for it's replay-gain headers on MP3s. This is fairly easy to work around using one of the various scripts that will add the APEv2 tags to mp3s and MPD has good support for Flac and Ogg-Vorbis replay-gain tags.

But it's cool to see more going on in this space. MPD has really been the only player on the field for to long. Hopefully it will work with ffmpeg as it is seeing most of the active development these days and looks to be back in Debian soon [ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729203 ].

Re:My Quest to Build the Ultimate Music Player by fragmede on Tuesday April 22, 2014 @05:39PM (#7630652)
Having to import my mp3 collection into MPD has always turned me off.

Why is that not a substantive criticism in your view?

Re:My Quest to Build the Ultimate Music Player by eikenberry on Tuesday April 22, 2014 @10:52PM (#7631825)
Semantics I guess. To me the internal db is a feature and not wanting it falls under the category of the application not fitting the need. Instead of a problem with the app itself.