Industry guru Dave Taylor answers free tech support questions about a wide variety of business and technical topics, including blogging, Google AdSense, MySpace, Sony PSP, Apple iPod, Mp3 players, management, Linux, SEO, Mac OS X, Facebook, Twitter, LinkedIn and Microsoft Windows.

Do most music CDs have 12 tracks?

This might sound like some wild conspiracy theory, but I'm looking at my music collection and it sure seems like most of them have exactly 12 tracks, no more, no less. Is there some marketing reason this would be the case, or am I witness to some great conspiracy? :-)


Dave's Answer:

Don't panic! There's no magic to it. A music CD can hold 60-70 minutes of music and the average pop song is about 5 minutes long. Do the math and you'll see that gives you about 12 songs per CD.

But I figured I'd do a bit of math here too. I have about 425 CDs in my music library, a wide range of genres, from country to classical, jazz to blues, and here's what I found:

428 albums analyzed
5369 tracks examined

The results:

OccurrancesNumber of Tracks
6510
56 12
50 11
41 9
25 8
24 15
22 14
1713
17 7
15 18
15 16
14 1
11 20
9 19
86
717

That is, 65 of the 428 albums have 10 tracks, 56 have 12 tracks, 50 have 11 tracks, 41 have 9 tracks, and so on. Percentage-wise, this means that less than 15% of my 428 tested CDs have exactly 12 tracks, but averaging everything out, yes, the average music CD has 12.54 tracks.

So there's your answer. No conspiracy theory involved! :-)

How I did these calculations

For those of you who would like to analyze your own iTunes library, here's how I did these calculations. I popped open a Terminal window on my Mac, moved into my "iTunes Music" folder within my "Music" folder, and...

$ find . -type d -mindepth 2 -print | wc -l
428

The predicate "-type d" is directories, so that tells me the number of Cds, and

$ find . -type f -mindepth 2 -print | wc -l
5369

That's the number of individual tracks across all those CDs. This means, by the way, that the average CD in my library, at least, has 12.54 tracks. So maybe there is some sort of conspiracy!

To figure out how many tracks there are per CD is a bit more tricky. To accomplish this, I actually wrote a short shell script:

#!/bin/sh

cd "/Users/taylor/Music/iTunes/iTunes Music"

for directory in $( find . -type d -mindepth 2 -print | sed 's/ /_-_/g' )
do
    dirname="$(echo $directory | sed 's/_-_/ /g')"
    echo $( ls "$dirname" | wc -l ) tracks: $dirname
    # ls "$dirname" | wc -l
done

exit 0

When run it lists tracks and albums:

$ tracks-per-song.sh | head
14 tracks: ./10,000 Maniacs/MTV Unplugged
12 tracks: ./10cc/Greatest Hits 1972-78
10 tracks: ./Acoustic Alchemy/Blue Chip
9 tracks: ./Acoustic Alchemy/Red Dust & Spanish Lace
9 tracks: ./Acoustic Alchemy/Reference Point
12 tracks: ./Adrian Legg/Mrs. Crowe's Blue Waltz
6 tracks: ./Al Di Meola/Elegant Gypsy
9 tracks: ./Al Di Meola, Paco de Lucia & John McLaughlin/The Guitar Trio
11 tracks: ./Al DiMeola/Splendido Hotel
11 tracks: ./Al Jarreau/All I Got

When I comment out the echo line and just output the number of tracks as a number with the wc command, I can easily slip the script into a typical collation sequence:

$ tracks-per-song.sh | sort | uniq -c | sort -rn
65 10
56 12
50 11
41 9
25 8
24 15
etc etc etc

Classic Unix command line stuff! :-)



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments
Rather amazingly, there are no comments on this article yet.

I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Join the List!
Join my author info mailing list, where you'll learn about my upcoming books, speaking gigs, and more!


Book Links
© 2002 - 2008 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]