SF Music Hack Day 2011 Hack - Harmony-based playlist generator
Python JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
chords.py
en-powered.gif
index.py
jwplayer.js
main.css
player.swf
playlist.py
rdio.js
swfobject.js
token.js

README.md

Harmony Generated Playlist

Created at Music Hack Day San Francisco 2011

Generate a playlist of related songs based on the chord structure of a seed song.

Create a concept album on the fly!

How it works

  • Get seed artist from ?artist param (default Weezer)
  • Select random song from catalog (or from ?song)
  • Get audio analysis from Echo Nest
  • Get chroma vectors
  • Compare chroma vectors to chord dictionary
  • Use cosine similarity - choose closest
  • For each chord, select a song in that key
  • If chord = D maj, song key = D major
  • Select songs from similar artists only
  • Compile playlist

Uses Echo Nest API for artist, song, and chroma data. Chord estimation using cosine similarity method.