Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use divider files to organize albums in XMMS UNIX
While XMMS doesn't have heirarchical playlists (a real bane to those who organize by album), you can add some organization by creating spaces or dividers between playlist items. This is most useful when sorting by filepath and filename (default). I have my untagged vorbis collection organized by "artistorvarious - album/trackno. artist - title.ogg" and this helps prevent the album items from running into each other (screenshot).

To do this, create an empty file and encode it into a format that XMMS understands. Then you can rename it as " " for a space or "-----" for a divider, or something similar. Then you can stick it in the album folder and depending on how you named it, will go in front or behind all the folder items in the playlist. For example:
 $ touch dummyfile
 $ lame -r dummyfile " "
for a spacer, or:
 $ touch dummyfile
 $ oggenc -r -o "-----------" dummyfile
for a separator.

One interesting side effect of this is that the characters of these filenames will flash briefly as XMMS skips over them in the playlist, so in the shot above as it jumps between albums the new album name flashes for a second. Also, if you want to start playing an album from the beginning, you don't have to search for the first song, you can just double-click on the album title or spacers and they will be skipped over, leading to the first track of the album.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,918 views]  

Use divider files to organize albums in XMMS | 9 comments | Create New Account
Click here to return to the 'Use divider files to organize albums in XMMS' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use divider files to organize albums in XMMS
Authored by: vlipper on Mar 24, '04 03:56:49PM

nice tip for those of us using XMMS. However, why post this on Mac OS X Hints? Isn't there a site for Linux that gathers hints?

---
Communication is coming on strong - j. hendrix



[ Reply to This | # ]
Use divider files to organize albums in XMMS
Authored by: heisenberg9 on Mar 24, '04 04:44:06PM

Vlipper,

XMMS runs quite well on OS X, if you are using X11. You can get XMMS installed on OS X using the Fink installer found at Sourceforge.

-Andrew Stone



[ Reply to This | # ]
XMMS has smaller footprint than iTunes
Authored by: mfuhrer on Mar 25, '04 01:55:48PM

XMMS can be easily installed for OS X via Fink. I frequently use XMMS in lieu of iTunes for performance reasons. This may not be so much of an issue on newer machines, but on my G3 350, iTunes normally uses 20 - 25 % of my CPU time, while XMMS just uses 5 - 10 %.



[ Reply to This | # ]
Use divider files to organize albums in XMMS
Authored by: c15zyx on Mar 24, '04 04:51:38PM

One slight technicality... if you use a filename consisting of only spaces, if you quit and reopen XMMS, it will get a little confused because it tries to find "/somepathhere/ " where " " is the filename. Another solution is to append a "_" to the end of the spacer, which is displayed as a space in XMMS's playlist.



[ Reply to This | # ]
Use divider files to organize albums in XMMS
Authored by: pwharff on Mar 25, '04 02:54:11PM

If you want to replace a space or multiple spaces like in this case with underscores, you can run this shell script (maybe call it something like "rename"):

for file in * ; do
mv "$file" $(echo "$file" | sed 's/ /_/g')
done

Don't forget to make this executable with "chmod +x rename" or you can just run this on one line in the terminal where you spaced files reside:

for file in * ; do mv "$file" $(echo "$file" | sed 's/ /_/g') ; done

Both should work fine.



[ Reply to This | # ]
Also...
Authored by: pwharff on Mar 25, '04 03:00:36PM

I forgot to mention with the last script, that if other files in the same directory that do not have spaces in them will be ignored and untouched, however the script will return an error with the "mv" command. So that this is ignored, you could modify the script to send stnderr to /dev/null, that way no matter what, your script will run smoothly. Like such:

[code]
for file in * ; do
mv "$file" $(echo "$file" | sed 's/ /_/g') 2> /dev/null
done
[/code]
or
[code]
for file in * ; do mv "$file" $(echo "$file" | sed 's/ /_/g') 2> /dev/null ; done
[/code]



[ Reply to This | # ]
Fixed
Authored by: pwharff on Mar 25, '04 03:03:47PM
Why can't we edit our post after we've submitted? So here it is again posted twice and formatted correctly, but this time I'm not so much of an idiot. I forgot to mention with the last script, that if other files in the same directory that do not have spaces in them will be ignored and untouched, however the script will return an error with the "mv" command. So that this is ignored, you could modify the script to send stnderr to /dev/null, that way no matter what, your script will run smoothly. Like such:

for file in * ; do 
   mv "$file" $(echo "$file" | sed 's/ /_/g') 2> /dev/null
done
or

for file in * ; do mv "$file" $(echo "$file" | sed 's/ /_/g') 2> /dev/null ; done


[ Reply to This | # ]
Use divider files to organize albums in XMMS
Authored by: g3cko on Mar 26, '04 05:43:11AM

I have a newer powerbook (866, 12") and iTunes runs fine on it, however, I can't *STAND* iTunes. I mount all my music (around 110GB) via NFS, and iTunes wants to copy it ALL onto my hard drive.

However, you can also set xmms to display the name of the song in the format: artist - album - song and then you can sort them based on path/filename and it does pretty well.



[ Reply to This | # ]
Use divider files to organize albums in XMMS
Authored by: c15zyx on Mar 26, '04 07:31:26AM

You can tell iTunes to not copy files when you add them to your library in the 'advanced' tab of its preferences.

Yeah, Artist - Album - Title also works, but I leave my files untagged, and naming them that way can cause the playlist to become unnaturally wide :).



[ Reply to This | # ]