Is it possible to make a smart playlist in iTunes that's comprised of tracks from unique artists (no one artist appears twice on the list)?

17

5

I can't figure out a way to get iTunes to create a playlist where every song in the list is a different unique artist, and no artists or songs are repeated. Is this possible?

(using iTunes 10, 64-bit, Windows 7)

Nathan Chase

Posted 2010-09-15T18:18:47.007

Reputation: 283

Did you want the songs of each artist to be random? – Sasha Chedygov – 2010-09-17T22:05:50.420

Yes, the songs and artists should be random. You shouldn't see the same song by the same artist twice on a list, nor should you see any duplicate artist appearing on the list. – Nathan Chase – 2010-09-19T16:39:18.843

Answers

31

Through iTunes, what you are asking is not possible. However, I thought that it should be possible, and fairly easy to do through a plugin or interface to itunes,

So I did what I promised!

alt text

It's not a true iTunes plugin, as I couldn't find any real sdk or information on writing them, but its a small WPF that interfaces with iTunes through COM. I'm working on refining it and I hope to have it up on SourceForge soon.

This is done through a COM library provided by iTunes which works in .NET. Information about the library can be found here.

xdumaine

Posted 2010-09-15T18:18:47.007

Reputation: 2 281

Brilliant! This is looking great! Can't wait to try it out! – Nathan Chase – 2010-09-25T13:08:22.353

1

its up on sourceforge. let me know how and if it works for you. http://sourceforge.net/projects/iplayrandomizer/files/setup.zip/download

use the support links on the sourceforge project to let me know of any problems. i'll try to fix them asap

– xdumaine – 2010-10-09T01:54:39.253

I am already working on updating the app. There are (many) known bugs. I'll try to re-release. Follow me on twitter @iPlayRandomizer (just for the app) or @XOver9000 (for me) – xdumaine – 2010-10-19T18:52:27.597

It took about 5 minutes to get through 100 songs, with nothing in the blacklist, but it works as advertised. Nice job! For a future release, it would be nice if it were able to pull from an existing playlist as its pool of songs to randomize from, rather than my entire iTunes library. – Nathan Chase – 2010-10-20T01:46:18.047

1It's on CodePlex now - if you're interested, updated and some bugs fixed iPlay.CodePlex.com – xdumaine – 2011-02-23T13:31:18.017

3

On windows, it might be possible through the iTunes COM interface. I never tried it, but here is an example

akurtser

Posted 2010-09-15T18:18:47.007

Reputation: 635

1

Based on the logic capabilities with smart playlists, to answer your question: No, this is not possible.

The logic works like this:

  1. Take all songs
  2. Narrow down the selection by applying rules (these are conditional statements)
    • Conditional statements apply only to the selection from the whole, not from what has already been selected
  3. You tell iTunes where to select the items, and how to limit the selection (minutes, songs, etc)
    • This is where you would apply the "unique artists" rule - though currently it is not an option. The logic would work by keeping a list of artists "selected" and when a song is chosen at random, its artist is checked against that list of "selected" artists, and if it is not in the list, it is chosen, and the artist is added to the "selected" list.

I can't find one, and I'm not sure if its possible - but this SHOULD be able to be accomplished through an iTunes plugin.

So in short, no, it is not currently possible.

xdumaine

Posted 2010-09-15T18:18:47.007

Reputation: 2 281

It's unfortunate, because it seems like such a simple request. It's hard to imagine that there isn't a large demand for this. Essentially a "jukebox that never repeats the same song or same band twice". – Nathan Chase – 2010-09-22T03:56:14.127

I agree, definitely. I'm going to a code-a-thon with some coworkers soon, and I was thinking about looking into writing a plug-in to do this. If anything comes of it, I'll update. – xdumaine – 2010-09-22T12:55:56.323

1

It's too bad you're not running OSX, or you could use an AppleScript like this one

If you're so inclined, perhaps you can code up something reading the script code referenced and using akurtser's suggestion to try the COM interface to iTunes?

Here's Doug's Script's windows resources for similar options for Windows iTunes users.

r00fus

Posted 2010-09-15T18:18:47.007

Reputation: 250