--- /dev/null
+[MPD][] is a wonderful little music player daemon. It's pretty easy
+to use, but there are always tricks to make things a bit more
+comfortable.
+
+* Calculating [[MPD playlist duration]].
+* Group-writable playlists with [[ACL]].
+* [[Replay gain]].
+
+[MPD]: http://mpd.wikia.com/
+
+[[!tag tags/fun]]
+[[!tag tags/linux]]
+[[!tag tags/tools]]
-I use [MPD][] to organize and play my music, since it's a pretty thin
+I use [[MPD]] to organize and play my music, since it's a pretty thin
layer over the directory structure I'd been using before. MPD's
playlists are stored in `/var/lib/mpd/playlists/` as [M3U][] files
(one filename per line), so it easy to build your own tools to work
range `[001,366]`, so an empty playlist would return `001 00:00:00`,
not the `000 00:00:00` I'd like. Oh well.
-[MPD]: http://mpd.wikia.com/
[M3U]: http://en.wikipedia.org/wiki/M3U
[post]: http://repura.livejournal.com/59403.html?thread=156683
--- /dev/null
+Some songs are louder than others, and it's annoying to have to
+constantly tweak the volume knob to keep things at a reasonable level.
+Enter "replay gain". You use a tool to go through your music and add
+tags marking how loud each song/album is, then you play them with
+something that understands the tags and adjusts the volume for you.
+Very convenient. Robert Downes (Bobulous) has a [nice post with
+scripts for tagging FLAC files][post] (the heart of his scripts is
+`metaflac --add-replay-gain *.flac`). Then just add
+
+ replaygain "album"
+
+to `/etc/mpd.conf` and restart `mpd`. VoilĂ !
+
+[post]: http://www.bobulous.org.uk/misc/Replay-Gain-in-Linux.html