music mix-indices

inthenightkitchenA mix for my math students, and for anybody else. All songs came from CD’s that I purchased full price, in person, from a shiny-toothed employee of a large record store. I even keep the cellophane wrapping and the stupid protective tape. here’s a picture of one of the cds for proof.
mix at mirror 1
mix at mirror 2
(These links will be dead in like a week, as I’m using one of those temporary file upload places.)

This is not a party mix, or a sleep mix. It is for citywalking and traintaking.

I decided against open standard .oggs because I think most of you will use a music player that doesn’t recognize them. So they are mp3s. boo.

finally figured out the problem I was having with the damn tags. Every time I would try to open the mix in Itunes things would go awry (I don’t use Itunes, I use cplay and mplayer). Turned out I was only editing the id3v1 tags, and the id3v2 tags were trumping them (in itunes, at least).

So I installed me some ‘id3v2‘. that’s the one for linux, and other unixs. it was letting me edit them from the command line, which is what I wanted (well, I wanted a curses interface because I am fearful, but the goal is cli). So I needed a script. Found a great one that worked first time from a ‘creaky joe’ on the murga-linux forum. It instantly filled in artist, album, track, and importantly, took the filename, stripped the extension, and made it the title. great.

now I can look into the script and see what made it happen. it’s pretty simple I think. here it is. I hope it helps some cli learner somewhere. GUI tag editors are stupid.

#!/bin/bash
#
# tag-mp3-id3v2.sh
#
# Tags every .mp3 in the current directory with the band and
# album names, and creates a song title by stripping
# the .mp3 extension from the file name.
#
# Use as follows: tag-mp3-id3v2.sh Artist Album
# (Make sure relevant Artist & Album are input to the script).
#
# Am using id3v2 Type 2 tags for everything EXCEPT Podcasts
# as my 1GB Sony NWD-B103 player can ONLY use id3v2 Type 1 tags.
#
# My 2GB Sansa Clip+, 30GB Creative Zen Vision M, and 4GB Philips GoGear are perfectly
# fine with Type 2 tags.
# XBMC is also perfectly fine with Type 2 tags (both on xbox XBMC and PC XBMC).
#
#

pdir=`pwd`
echo
echo "Current directory is '$pdir'"
echo

if [ $# -ne 2 ]
then
echo "Usage: $0
" >&2
echo "Make sure
equates to 'Artist'"
echo "Make sure
equates to 'Album'"
exit 1
fi

echo $1
echo $2
echo

fcount=0
for i in *.mp3; do
let fcount=fcount+1

SONG=`basename "$i" .mp3`
id3v2 -2 -T $fcount --album "$2" --artist "$1" --song "$SONG" "$i"
done

This entry was posted in Uncategorized and tagged , , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>