Showing posts with label mp3. Show all posts
Showing posts with label mp3. Show all posts

Saturday, August 29, 2009

Rediscovering Old Music

My old schoolmate and "Reach for the Top" team captain John Gushue published a blog entry, Flight of the old chords: Migrating your music, with some thoughts about the pleasure of rediscovering old music.

I've gone through this process a couple of times, what with moving from one computer to another, and from one music player to another. Every now and then I'll find some MP3s that I ripped in the pre-Mac days, from CDs that are now packed away and forgotten.

I use a couple of techniques to go back and savour old music that otherwise might fall out of use, even within my current iTunes library.

Forgotten Favourites



A smart playlist named "Forgotten Favourites" holds the 4- and 5-star songs that have the oldest "last played" dates. Depending on the size of your library, you could set this up in different ways. It could be all your 4- and 5-star songs, with "limit of N items selected by least recently played". Or it could be all your 4- and 5-star songs with a last-played date farther back than some cutoff, such as "last played is not in the last 12 months", then perhaps with a limit and the songs selected randomly.

No matter how you arrange it, you'll hear some songs that you like, that you haven't heard in a while. And after you hear a song, it will drop off the playlist and be replaced by another.

Album Appreciation



When I get a new album, I put it on a playlist "Album Appreciation" that I listen to when I have a few free seconds to rate each song. But after a while, it can seem unfair to devote time to new music where there might only be a couple of 3-star songs per album, when there's all this great older music that I'm missing. So every now and then, I'll erase all the ratings from one of my classic albums, put all the songs in the "Album Appreciation" playlist, and go through it again just to remember how the songs work together in order. (Sometimes listening like this, I'll give certain songs a higher rating than if they just came up by themselves on shuffle play.)

PS: Although I refer to "Album Appreciation" as a single playlist, actually it's 2. "Album Appreciation - Raw" is a regular playlist where I can drop a whole album. "Album Appreciation" is a smart playlist that picks songs from the first playlist, but only the songs with no star rating. That way, as I rate the songs, they fall off the playlist that I actually listen to. And when I've rated several albums this way, I'll go back and take them out of the "Raw" playlist.

Saturday, August 09, 2008

Inside Outside, Metadata

Every time I hear the word "metadata", I cringe a little bit. It's one of these simple intuitive notions that everyone has experience with, but in the tech world it's loaded up with so much jargon that it gets lost in the clouds.

With iTunes, you might be familiar with metadata as the editable Song, Artist, Album, etc. fields on the Info panel when you do File -> Get Info. This is information about each song that's stored inside the song file.

There's also metadata that's outside the file itself, like what directory it's in or even the filename. You can move the file around and rename it, and it's still the same song. It just might be harder to find unless you name it and file it in a logical way.

When you import songs into iTunes, this "inside/outside" distinction can be important if the songs come from a source other than songs ripped from a CD by iTunes. For example, maybe the songs have names like "01 - Great Song.mp3" in a folder "My Favorite Band/Their Best Album". You drag a bunch of songs like that into iTunes, only to discover that the fields in the "Get Info" panel are all blank, and now the song is filed in your iTunes Music folder under "Unknown Artist/Unknown Album".

How do you avoid that happening? The key is to make sure that all the information -- the metadata -- that you know about each song gets stored inside the song file before you let iTunes start messing around with the file names and locations.

You have some options, depending on how you're importing...

Let's say you are ripping a CD out in the woods or in a plane, someplace with no Internet access so iTunes can't automatically retrieve the track info. If it's a well-known CD, you can probably retrieve the track info later, so no worries. But if it's an indie release, an import, or just something obscure, you might be forever left with some files named "Track 20" and so on and nothing else to go by.

When you're ripping or importing a bunch of songs all from the same artist, import them into a playlist named for the artist and album. That way, even if no other information is available, you can go back to that playlist, select all the songs, and in the "Get Info" dialog, fill in the same artist, album, genre, year, "Disc n of n", and so on for all the songs at once. If you're importing several albums by the same artist, you can make a separate playlist for each one. Perhaps make an iTunes folder named for the artist, then separate playlists underneath named for each album.

Let's say you're importing songs that weren't created by iTunes, say a fanboy collection of bootlegs that are arranged in some special hierarchy, like one folder named "1972" with a bunch of concerts from the same tour, then another one "1975" and so on. You want to preserve the information from this hierarchy so you can fill in the year etc. if those fields aren't filled in in the "Get Info" panel.

This situation calls for a more elaborate process. Make sure that the setting under Preferences -> Advanced -> General, "Copy files to iTunes Music folder when adding to library" is turned off. Then you can drag the files into iTunes and the Get Info -> Summary panel will still show you the full folder path of the file. You can examine the files to see which info fields are filled in, which ones you need to fill in yourself, and you can refer to the Summary panel if the track number, year, album, etc. aren't available in the title of the song.

When you're done with this initial step, remove the files from your iTunes library -- select the songs and hit Delete within the main Music part of the library, or Alt-Delete within a playlist. Because the songs aren't actually underneath the iTunes Music folder, iTunes won't ask about moving the original files to the trash. They'll stay exactly where they are, just now with some extra metadata inside the actual files.

Now you can go back to Preferences and turn the "Copy files..." setting back on. Import the files again, and now they'll go into the iTunes Music folder under the familiar "Artist/Album" folder path. Because you've already filled in these info fields for all the songs, you don't have to worry about them ending up under "Unknown Artist/Unknown Album".

In this example, we see some files that I really did rip way out in the wilderness with no Internet access. Learn from my mistake! First, we see the completely unhelpful song names, with no artist or album filled in. Because I just imported them into my main music library, instead of dragging into a descriptively named playlist, there's no clue I can use to go back and fill in the info. The Get Info -> Summary panel is no help, it shows me they're filed under "Unknown Artist/Unknown Album". I tried using the menu item Advanced -> Get CD Track names, but the CD was too obscure , it isn't listed in the Internet CD Database. If I had imported existing MP3s from a folder named after some combination of band, album, year, etc., I could avoid the "Unknown Artist/Unknown Album" mystery by unchecking the "Copy files..." option in Preferences -> Advanced -> General, at least until I had filled in all the other fields. Then I could turn on that option, remove the files from the library, and re-import them to file them in a central, easy to find location.



When you import songs that have all the info encoded into the filename, such as "1. 1991 - One-Hit Wonder - Flash in the Pan - Only Album.mp3", it doesn't have to be tedious to retype all these items in the Get Info fields. For users of iTunes on the Mac, there's an Applescript called TrackParser that can pull out these extra pieces of information from the song name, fill them into the appropriate fields, and strip them out of the song name field.

In this example, we start with a song that has all the info packed into the song name. After running the TrackParser script, we construct a pattern using placeholders for the important parts, and matching the punctuation and spacing of the remainder of the song name. First, we click the "Test Run" button to see whether the pattern will pull out the right pieces of information and put them in the right fields; we keep clicking OK until we're satisfied that the pattern is accurate, then click Cancel to end the test run. We go through the same steps again, and the same pattern is still filled in. Clicking Run this time makes the script really fill in the other fields and trim the extra info out of the song name. In the end, the Get Info panel reflects the right song information.

Tuesday, April 29, 2008

Life without iPod

When I spilled some water on my desk, I thought I had whisked the iPod to safety in time, but the next day I noticed telltale droplets on the bottom surface and it wouldn't turn on or charge.

I Googled various combinations of "ipod water damage", and the gist of the suggestions was to keep the iPod turned off while letting it dry (under gentle sun where possible) for up to a week. I had already made some attempts to turn it on, which may have sealed its doom. I haven't been able to get a peep out of it after several days. All the advice seemed to be for a disk-based model, and I have a flash-based Nano; don't know if the all-memory models are more susceptible to damage this way.

This poses an interesting conundrum for the commute by car. I have a 6-disc CD changer, but it only reads music CDs not MP3 CDs. The compromise I've settled on is:

- 3 CDs worth of music.
- 3 CDs worth of podcasts. (I'm working my way through the early CS courses of UC Berkeley, just to see what it is that makes Silicon Valley companies so snooty when they ask where you went to school.)
- Music CDs burned at random from one of my favorite playlists, suitable for driving.
- Music CDs not labelled at all, so I can swap 3 in randomly from a bigger selection, and have no idea what will come up.
- Podcasts carefully labelled (title and episode number), so I can fill up slots 4, 5, and 6 and keep track when wrapping around. E.g. sometimes I put the next 2 episodes in CD slots 4 and 5, before I've listened to the earlier episode that's still in slot 6.

The downside of podcasts on music CDs is that one episode takes a whole CD, assuming it's reasonably long, regardless of the bit rate / sound quality.

Sunday, March 02, 2008

iTunes: Adding Track Numbers to Songs

Everyone fills in the basic facts in iTunes for their songs -- name, artist, and usually album -- but don't forget another valuable piece of information, the track number!

Track number is important when you're burning an audio CD. You'll want to sort by that field to avoid the songs coming out in alphabetical or some other unhelpful order. It's important when you want to verify that you have all the tracks from an album. When listening to the album in iTunes, you can sort the songs and turn off Shuffle to re-create the album experience. Ditto on your iPod, if you turn off Shuffle or set it to Shuffle Albums, and listen to songs in album order.

If a group of songs don't already have the Track Number field filled in, don't give up hope. A couple of Applescripts let Mac users of iTunes fill it in without a lot of gruntwork.

Use the first script if your song names in iTunes are stuffed with several pieces of information, including the track number. Typically, all the songs from an album will use the same format for the name, for example "01 - Happy Birthday - Greatest Birthday Songs" or "5. Christmas Album / Jingle Bells". But each album might use a different format. That's where the Track Parser script comes in. You select some tracks, enter a coded string that says how to interpret the data, spaces, and punctuation in the names. The script scans through the selected tracks and slots the information into the right fields, while stripping that extra information out of the name field. You can experiment by doing "test runs" on a single track before you turn it loose on dozens of songs. And you can save the string patterns, so that if you encounter similarly named songs in the future, you can "decode" them just by picking from a list of sample song names.

If the track information isn't in the song names, all is not lost. You'll just need to do a bit more work. First, you'll need to download and install the Albumize Selection script. Go to Wikipedia, Amazon.com, or some other "discography" site that lists all the tracks on that album. Turn off Shuffle in iTunes, put the tracks in a playlist, and sort that playlist by the first column -- the one with no label, just numbers. That puts the tracks in the order that is iTunes' "best guess" of the right order. Once these settings are in effect in the playlist, you can drag songs up and down to reorder them. When they're in the right order, select all the tracks from the album (or from disc N in a multi-disk set), run the Albumize Selection script from the iTunes script menu, and it will fill in the "Track X of Y" information for the selected songs.

If you have to go to these lengths to find out album information, don't forget to also fill in the year for all the songs in each album. That will let you create Smart Playlists based on year or decade, and sort an artist's work in chronological order.

Sunday, October 29, 2006

Gapless Playback in iTunes 7

Having used iTunes 7 for several weeks now, I'd have to say the worst thing about it (for me) is the whole "gapless playback" idea. On the surface, it seems fine. iTunes analyzes all the songs and figures out which ones don't need any silence between then when they're played consecutively. The gaps have always bugged me on, for example, Pink Floyd's "The Wall" where one song trails off into a bunch of sound effects and dialog, which then segues straight into the next song. But consider:

  • iTunes 7 tries to analyze every song in the library the first time you run it. (That process is very slow, you might have to let it run all night and all the next day.)
  • If you interrupt the analysis, iTunes tries to run it again for your whole library the next time you import any music.
  • If you use the technique of removing the iTunes library data file, and re-importing a modified XML data file, iTunes does the analysis yet again! The "gapless / not gapless" setting isn't preserved in the XML file. I've used this technique several times recently while moving songs between hard drives, and the constant "analyzing songs for gapless playback" is driving me up the wall.
  • How often do you actually listen to an entire concept album with shuffle turned off? I'm much more likely to hear a song from "The Wall" as part of some playlist. For me, it would be more useful to have a way to join two songs into a single unit retroactively. You can join songs like this, but only when you rip them; neglect to plan ahead, and you have to go back to square one with that CD.