heard is a native Mac application that sits in your menu bar and records what you listen to in iTunes.
It’s the small part of last.fm that I want. It records when you start a song, how long the song is, the artist, et. cetera. It’s anti-social, has nothing to do with the cloud, and the use case is less precise than ‘social sharing and discovery’: the main end-product is the ability to export your songs to JSON.
I was an eager user of Audioscrobber, which became last.fm, until it was acquired by CBS music group and then the founders left and then there was all kinds of drama about them possibly forking over data to the RIAA. The tinfoil-hat wearing users with iTunes libraries not entirely purchased from the iTunes Music 'Store’ understandably ran away. That and the new features they tried to implement, like streaming and subscriptions seemed like a money-making proposition for the Pandora-listening audience rather than a feature for data-hoarding programmer-types like myself.
But, to their credit, Audioscrobber.app was released as open source (and provided the 'aha’ moment for how to get heard to work). Plus, Lastgraph introduced the world to the streamgraph, later made accessible by d3js.
This app took a really long time to write. An embarrassing amount of time.
I’d really recommend writing Mac apps, even though (possibly because) the experience invokes unending puzzlement and rage. It’s not as wild as writing in lisp or Factor, but it’s practical, mind-bendy, infuriating, and guaranteed to take you out of your comfort zone.
Initially heard wrote CSV files, like minute does. But then switched to Core Data. It started without any libraries, and eventually acquired Underscore.m, with the attendant CocoaPods dependency. Minute was written before Automatic Reference Counting, so I had to relearn properties and memory management. Something as simple as opening an About window took hours of trial to find the three-line implementation that works.
A song recorded by heard:
A few examples of graphics would be the treegraph I made for my recent 'Recently’ post:
And this quick song duration histogram:
There are a few turning-point aha moments.
This is open-source software, and it’s free. It isn’t 'signed’, so you’ll need to either right-click (or control-click) and click 'Open’, or turn Gatekeeper off if you’re using Mountain Lion.
It almost certainly has bugs and could use lots of refinement. Head to the issue tracker if you’ve got something to report, and file a pull request if you’ve got something to contribute. It’s the tmcw/heard project on GitHub.