Blog

Automatic iTunes track rating based on listening patterns

Autorate
I have written an application that analyses listening patterns in iTunes and generates track ratings automatically. This is particularly useful when using Party Shuffle. The application awards a high score to tracks that are listened to frequently, and penalises tracks that are skipped frequently.

It uses the formula:

rating = (100 * ( (play frequency – lower) / (upper – lower) ) – skips per month * 5

Where upper is the main play frequency + 2 standard deviations, and lower is the mean play frequency – 2 standard deviations

Download AutoRate 1.0 here

Related posts

Tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

23 Comments

  1. Posted May 3, 2007 at 1:41 pm | Permalink

    Thank you for writing this application. I, for one, do not have time to rate 7000+ songs in my collection. Hopefully, this application will ease the task of rating my songs or eliminate the task completely!

    Also, I have blogged about this article on my site: http://appletvsource.com.

    Thanks again.

    Luck

  2. Lando
    Posted May 4, 2007 at 9:00 am | Permalink

    It Sounds cool but i’ve rated alot of my songs already. I would use it if it didnt overwrite existing ratings.

  3. AaronS
    Posted May 4, 2007 at 3:23 pm | Permalink

    Lando,

    Create a smart playlist of unrated songs and run AutoRate on just that playlist. Simple as that.

  4. Posted May 5, 2007 at 8:11 am | Permalink

    Neat app and very fast. My music library has about 2500 tracks, probably 80-90% were unrated. It would be nice to have a dialog pop up when you run AutoRate noting that it will override existing ratings and explaining how to create a smart playlist so it will only rate unrated songs. Nicer yet if you could tell it not to change ratings.

  5. William Sun
    Posted May 5, 2007 at 8:47 am | Permalink

    Great application, I need a bit of help though. I’m trying to follow the instructions for the Rate Now.scpt but having trouble for the ‘crontab -e’ part. It says ‘no crontab for williamsun – using an empty one’ and when I try to type the next step, it doesn’t allow me. Any ideas?

  6. Ryan Ariff
    Posted May 5, 2007 at 9:41 am | Permalink

    Is there a version of this for iTunes for Windows? It sounds really cool.

  7. Posted May 6, 2007 at 4:08 pm | Permalink

    Very neat, thanks!

    Now, how about iPhoto support in the next version of AutoRate? For all us por— I mean, photographers here… ;)

    It could rate the photos based on how long you watch them (and how often, of course…)

  8. Mike
    Posted May 7, 2007 at 3:45 am | Permalink

    Hi, William.

    That’s my mistake – I should’ve given more detailed instructions. The editor invoked with crontab -e is vi, which requires you to enter ‘insert’ mode by pressing ‘i’ before you start typing any text. So, just press ‘i’ to start entering that line, then proceed as normal.

  9. Mike
    Posted May 7, 2007 at 3:46 am | Permalink

    For all those who have suggested a Windows version – it’s in the works. It looks like Windows’ iTunes version is javascriptable, so it’ll probably be in the form of a .js script that you run. Nothing too fancy, I’m afraid, but it’ll do the job.

    Keep an eye out over the next week or so.

  10. Posted May 9, 2007 at 12:07 pm | Permalink

    Great great great! :)

  11. Jared Hayslett
    Posted May 12, 2007 at 9:30 pm | Permalink

    I can’t seem to get the cron job to run. I changed the time to 9PM (21) since I am using a MacBook. Should I see the app run when the cron job runs?

    Also, how could I edit the script so that it runs it on “Music” instead of “Entire Library?”

  12. Jared Hayslett
    Posted May 12, 2007 at 10:01 pm | Permalink

    Got the cron job working.

    In addition to telling the app to run on the “Music” library, is there also any way to tell the app to run in the background instead of a visible window?

  13. Mike
    Posted May 12, 2007 at 10:27 pm | Permalink

    Ah, well done, Jarad. I’m just adding to the Rate Now script the ability to select a playlist – while I’m at it, I’m adding a couple features to AutoRate.

    Give me a couple minutes, I’ll release a script that does all those things =)

  14. Jared Hayslett
    Posted May 12, 2007 at 11:16 pm | Permalink

    Waiting patiently…

  15. Mike
    Posted May 12, 2007 at 11:21 pm | Permalink

    Then wait no more… Head over to http://atastypixel.com/blog/software/autorate and grab v1.2. Then edit Rate Now.scpt and set the playlist/hide options.

  16. Jared Hayslett
    Posted May 13, 2007 at 11:15 pm | Permalink

    Awesome. Keep up the good work, bro.

  17. Jeremy
    Posted May 14, 2007 at 8:22 pm | Permalink

    Awesome app. Worked on one MacPro with 3500 songs flawlessly, however on a G5 i get an “applescript event timed out” error. Could it be a (much) larger library size causing this? Is there a limit to the size of the iTunes library that your app will work with?

  18. Mike
    Posted May 14, 2007 at 9:03 pm | Permalink

    Hi, Jeremy – Yes, I’m afraid there is a limit. I’ve had reports from other users that somewhere around 23,000 tracks causes problems. The timeout happens while asking iTunes for the contents of the playlist. I’ve just looked into it further, and it turns out there’s a way to extend the timeout. Give me a little while and I’ll release an update.

  19. Posted May 15, 2007 at 1:03 pm | Permalink

    Thank you!

    Thank you not only for this nice little app, but more importantly for releasing its source. As a Mac and Linux user, I’ve noticed that growth in the Mac developer community is really slow because any person with Xcode and a little Cocoa app asks for $20 for their closed-source “shareware.” You set a really good example for the kind of work the Mac community needs to grow.

  20. Posted May 19, 2007 at 10:50 am | Permalink

    I just wanted to say how much I love this app. This is the kind of behind the scenes learning that makes computers useful. I don’t have time to rate each song in relation to every other song, especially when I’d much rather be listening to it. Plus I may really like a song when I first buy it, but then after six months get sick of it, only to find six months later I really like it. The whole point of a large library of songs is to be surprised with what you already like.

    Thanks!

  21. Posted May 22, 2007 at 12:56 pm | Permalink

    I’m just subscribing to these comments so I’ll be notified when a windows version gets released. Thanks for this great app.

  22. Justin
    Posted May 24, 2007 at 1:03 am | Permalink

    Wow. Great app, it seems. Hopefully that windows version doesn’t wrack your brain too hard ;)

  23. kaja
    Posted June 8, 2007 at 5:13 am | Permalink

    i don’t understand how to install auto rate. maybe its because im a girl…or because im from germany… or because im too stupid. well. i dont now. could someone explain it to me ?

    :D

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> <pre lang="" line="" escaped="">

Subscribe without commenting