jsawruk / sf_music_hack_day_2011

SF Music Hack Day 2011 Hack - Harmony-based playlist generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

SF Music Hack Day 2011 Hack - Harmony-based playlist generator


Languages

Language:Python 98.5%Language:JavaScript 1.5%