Data Mining Music

72
Data Mining Music Paul Lamere March 11, 2012 #SXMusicData

description

My SXSW 2012 talk on data Mining Music

Transcript of Data Mining Music

Page 1: Data Mining Music

Data Mining Music

Paul LamereMarch 11, 2012

#SXMusicData

Page 2: Data Mining Music

#SXMusicData

Digital music revolution continues

I’ve got 10 million

songs in my pocket.

Now what?

Page 3: Data Mining Music

#SXMusicData

10 Easy Pieces

• Artist names

• Artist relationships

• Fan Passion

• Better recommendations

• Frog-based playlisting

• Finding a better drummer

• The Loudness War

• Looking for the slow build

• Automatic music visualization

• Data-driven music remixing

Mining Data about music Mining music itself

Page 4: Data Mining Music

#SXMusicData

Tale of Two Datasets

Page 5: Data Mining Music

#SXMusicData

MusicBrainz

• Basic metadata

• 645K Artists

• 1M Releases

• 10M Recordings

• And more ...

Let’s have some fun with MusicBrainz data

Page 6: Data Mining Music

#SXMusicData

Have band names been getting longer?

Page 7: Data Mining Music

#SXMusicData

let’s use the some data to find out• Collect the top 500 artists for each 5 year window

(via Echo Nest or Musicbrainz)• Calculate the average name length for period.

Have band names been getting longer?

Page 8: Data Mining Music

#SXMusicData

Have artist names been getting longer?

• Collect the top 500 artists for each 5 year window• Calculate the average name length for period.

The code is shorter than Zach’s answer

Let’s find out with big data!

(well, really not that big)

Page 9: Data Mining Music

#SXMusicData

Have band names been getting longer?

Page 10: Data Mining Music

#SXMusicData

The average length of artist names peaked in the period from 1955-1959.Average name length was 2 characters longer in 1955 than in 2012

Average name length

Year

Have band names been getting longer? NO

Page 11: Data Mining Music

#SXMusicData

Band names from 1955-1959

44 Van McCoy & The Soul City Symphony Orchestra35 Academy of St. Martin in the Fields33 The Clancy Brothers & Tommy Makem33 Cliff Bennett & The Rebel Rousers32 Maurice Williams and The Zodiacs31 Herb Alpert & The Tijuana Brass30 Smokey Robinson & The Miracles30 Little Anthony & The Imperials29 Van Morrison & The Chieftains29 Nelson Riddle & His Orchestra29 George Clinton and Parliament29 Frankie Lymon & The Teenagers29 Clancy Brothers & Tommy Makem

Page 12: Data Mining Music

#SXMusicData

Longest band names

51 2010 Tim and Sam’s Tim and the Sam Band with Tim and Sam48 1994 ...And You Will Know Us By The Trail Of The Dead47 1967 Charles Wright & The Watts 103rd St Rhythm Band46 1993 The Presidents of the United States of America44 1959 Van McCoy & The Soul City Symphony Orchestra43 2000 Richard Cheese & Lounge Against The Machine43 1950 Benedictine Monks of Santo Domingo de Silos41 1981 Emir Kusturica & The No Smoking Orchestra39 1972 Afrika Bambaataa & The Soul Sonic Force37 2010 Antoine Dodson & The Gregory Brothers37 2005 Edward Sharpe and the Magnetic Zeroes37 1999 Someone Still Loves You Boris Yeltsin36 1977 Gloria Estefan & Miami Sound Machine

Page 13: Data Mining Music

#SXMusicData

More fun with MusicBrainzArtist relationship data

Page 14: Data Mining Music

#SXMusicData

We can build an Oracle of Kevin Bacon for music

Woah!

Page 15: Data Mining Music

#SXMusicData

How many steps from Eric Clapton to Justin Bieber?

Eric Clapton

Phil Collins

Usher Justin BieberPerformed

on trackI wish it

would Rainwith Phil Collins

Composed You’ll be in my Heart

performed by Usher

Who performed

on First Dance with

Justin Bieber

1 2 3

Page 16: Data Mining Music

#SXMusicData

Six Degrees of Black Sabbath

http://labs.echonest.com/SixDegrees/?start=eric+clapton&end=justin+bieber

Page 17: Data Mining Music
Page 18: Data Mining Music
Page 19: Data Mining Music
Page 20: Data Mining Music
Page 21: Data Mining Music
Page 22: Data Mining Music
Page 23: Data Mining Music
Page 24: Data Mining Music

#SXMusicData

The Million Song Data Set

• Core Data: Echo Nest analysis for a million songs

• Complimentary Data

• Second Hand Songs - 20K cover songs

• MusixMatch - 237K bucket-of-words lyric sets

• Last.fm tags - song level tags for 500K tracks. plus 57 million sim. track pairs

• Echo Nest Taste profile subset - 1M users, 48M user/song/play count triples

http://labrosa.ee.columbia.edu/millionsong/

Page 25: Data Mining Music

#SXMusicData

Data mining listener data

Who are the most passionate fans?

Dubstep Fan Metal heads

Page 26: Data Mining Music

#SXMusicData

Passion Index

High plays per listener

Page 27: Data Mining Music

#SXMusicData

Passion Index

Low plays per listener

Page 28: Data Mining Music

#SXMusicData

Who has the most passionate fans?

Page 29: Data Mining Music

#SXMusicData

Who has the most passionate fans?

Average 115 plays per fan

Page 30: Data Mining Music

#SXMusicData

Passion Index

Metal heads are passionate

music fans

passionate

Page 31: Data Mining Music

#SXMusicData

Passion Index

Who has the least passionate fans?

Page 32: Data Mining Music

#SXMusicData

Passion Index Who has the least passionate fans?

Average only 5 plays per ‘fan’

Page 33: Data Mining Music

#SXMusicData

Better RecommendationsPeople who listen to the Beatles also listen to:

That’s pretty boring

Page 34: Data Mining Music

#SXMusicData

Better RecommendationsPeople who bought Sgt Pepper’s also bought:

That’s pretty irrelevant

Page 35: Data Mining Music

If you like The Beatles you might like

Page 36: Data Mining Music

Going beyond user data

• Top ‘terms’ for an artist

• Artist popularity

• Artist familiarity

• Artist relations

• Years of activity

• Fan Passion

Page 37: Data Mining Music

Beatles near neighbor graph tuned for discovery

The Beatles

Bob Dylan Emitt Rhodes

The Beau Brummels The Hollies

Pink Floyd Bee Gees

The Who

Elvis Presley

The Byrds

Harry Nilsson

Badfinger

Todd Rundgren

Duncan Browne

The Left Banke

The Zombies

The Lovin' Spoonful

Buffalo Springfield

The Grass Roots Moby Grape

Page 38: Data Mining Music

If you like The Beatles you might like

The Beatles

Bob Dylan Emitt Rhodes

The Beau Brummels The Hollies

Pink Floyd Bee Gees

The Who

Elvis Presley

The Byrds

Harry Nilsson

Badfinger

Todd Rundgren

Duncan Browne

The Left Banke

The Zombies

The Lovin' Spoonful

Buffalo Springfield

The Grass Roots Moby Grape

Page 39: Data Mining Music

If you like The Beatles you might like

The Beatles

Bob Dylan Emitt Rhodes

The Beau Brummels The Hollies

Pink Floyd Bee Gees

The Who

Elvis Presley

The Byrds

Harry Nilsson

Badfinger

Todd Rundgren

Duncan Browne

The Left Banke

The Zombies

The Lovin' Spoonful

Buffalo Springfield

The Grass Roots Moby Grape

Page 40: Data Mining Music

#SXMusicData

More fun with artist similarity graphs

http://www.stanford.edu/~dgleich/demos/worldofmusic/WorldOfMusic.html

Page 41: Data Mining Music

#SXMusicData

Finding a path from the smooth jazz of Kenny G

To the brutal death metal

of Nile

Page 42: Data Mining Music

#SXMusicData

Kenny G

Amy Lee John Tesh Kim Waters David Sanborn David Foster Gerald Albright Dave Koz George Howard James Vargas

Jan Hammer Jay Graydon Michael Kamen Stephen Bishop

Jennifer Warnes Dan Hill Andrew Gold Art Garfunkel Christopher Cross Dan Fogelberg Barry Manilow

Bread Ambrosia Benny Mardones Little River Band Michael McDonald

Peter Cetera

Kenny Loggins

Captain & Tennille

James IngramPaul Carrack Hall & Oates

Culture Club The Doobie Brothers The Righteous Brothers Phil Collins Billy Ocean Daryl Hall Rick Springfield

Rod Stewart

Dire Straits

Labi Siffre Richard Marx Elton John Peter Gabriel Michael Bolton Sting

Bee Gees Three Dog NightFleetwood Mac Paul McCartney Joe Cocker Neil Sedaka Long John Baldry

Christine McVieThe Rolling Stones Lindsey Buckingham Chicken Shack Peter Frampton Dance Yourself to Death Stevie Nicks Bob Welch

Bob SegerMott The Hoople Pat Travers Band Eric Clapton

J.J. CaleGary Moore Jimmy Page Alvin Lee Jimi Hendrix John Mayall & The Bluesbreakers Michael Burks Mark Knopfler

Jefferson Airplane The Doors Haale Led Zeppelin John Frusciante Janis Joplin Ace Frehley Eric Gales

Dave Navarro Beck Chad Smith The Mars Volta Slash Ataxia

The Prize Fighter Inferno Sparta Free Moral Agents The Dillinger Escape Plan The Stiletto Formal Omar A. Rodriguez-Lopez Schoolyard Heroes Heroes & Zeros

Benea Reach Car Bomb Spitfire Ephel Duath Meshuggah The Number Twelve Looks Like You HORSE the band Look What I Did Fear Before the March of Flames

Synthetic Breed Zero Hour TesseracT Gojira Carcass

Textures

Periphery Forbidden

Septic FleshStrapping Young Lad Lamb of God Nile Mastodon

Finding a path from the smooth jazz of Kenny

To the brutal death metal of Nile

Page 43: Data Mining Music

#SXMusicData

Kenny G

Amy Lee John Tesh Kim Waters David Sanborn David Foster Gerald Albright Dave Koz George Howard James Vargas

Jan Hammer Jay Graydon Michael Kamen Stephen Bishop

Jennifer Warnes Dan Hill Andrew Gold Art Garfunkel Christopher Cross Dan Fogelberg Barry Manilow

Bread Ambrosia Benny Mardones Little River Band Michael McDonald

Peter Cetera

Kenny Loggins

Captain & Tennille

James IngramPaul Carrack Hall & Oates

Culture Club The Doobie Brothers The Righteous Brothers Phil Collins Billy Ocean Daryl Hall Rick Springfield

Rod Stewart

Dire Straits

Labi Siffre Richard Marx Elton John Peter Gabriel Michael Bolton Sting

Bee Gees Three Dog NightFleetwood Mac Paul McCartney Joe Cocker Neil Sedaka Long John Baldry

Christine McVieThe Rolling Stones Lindsey Buckingham Chicken Shack Peter Frampton Dance Yourself to Death Stevie Nicks Bob Welch

Bob SegerMott The Hoople Pat Travers Band Eric Clapton

J.J. CaleGary Moore Jimmy Page Alvin Lee Jimi Hendrix John Mayall & The Bluesbreakers Michael Burks Mark Knopfler

Jefferson Airplane The Doors Haale Led Zeppelin John Frusciante Janis Joplin Ace Frehley Eric Gales

Dave Navarro Beck Chad Smith The Mars Volta Slash Ataxia

The Prize Fighter Inferno Sparta Free Moral Agents The Dillinger Escape Plan The Stiletto Formal Omar A. Rodriguez-Lopez Schoolyard Heroes Heroes & Zeros

Benea Reach Car Bomb Spitfire Ephel Duath Meshuggah The Number Twelve Looks Like You HORSE the band Look What I Did Fear Before the March of Flames

Synthetic Breed Zero Hour TesseracT Gojira Carcass

Textures

Periphery Forbidden

Septic FleshStrapping Young Lad Lamb of God Nile Mastodon

Page 44: Data Mining Music

#SXMusicData

Kenny G

Amy Lee John Tesh Kim Waters David Sanborn David Foster Gerald Albright Dave Koz George Howard James Vargas

Jan Hammer Jay Graydon Michael Kamen Stephen Bishop

Jennifer Warnes Dan Hill Andrew Gold Art Garfunkel Christopher Cross Dan Fogelberg Barry Manilow

Bread Ambrosia Benny Mardones Little River Band Michael McDonald

Peter Cetera

Kenny Loggins

Captain & Tennille

James IngramPaul Carrack Hall & Oates

Culture Club The Doobie Brothers The Righteous Brothers Phil Collins Billy Ocean Daryl Hall Rick Springfield

Rod Stewart

Dire Straits

Labi Siffre Richard Marx Elton John Peter Gabriel Michael Bolton Sting

Bee Gees Three Dog NightFleetwood Mac Paul McCartney Joe Cocker Neil Sedaka Long John Baldry

Christine McVieThe Rolling Stones Lindsey Buckingham Chicken Shack Peter Frampton Dance Yourself to Death Stevie Nicks Bob Welch

Bob SegerMott The Hoople Pat Travers Band Eric Clapton

J.J. CaleGary Moore Jimmy Page Alvin Lee Jimi Hendrix John Mayall & The Bluesbreakers Michael Burks Mark Knopfler

Jefferson Airplane The Doors Haale Led Zeppelin John Frusciante Janis Joplin Ace Frehley Eric Gales

Dave Navarro Beck Chad Smith The Mars Volta Slash Ataxia

The Prize Fighter Inferno Sparta Free Moral Agents The Dillinger Escape Plan The Stiletto Formal Omar A. Rodriguez-Lopez Schoolyard Heroes Heroes & Zeros

Benea Reach Car Bomb Spitfire Ephel Duath Meshuggah The Number Twelve Looks Like You HORSE the band Look What I Did Fear Before the March of Flames

Synthetic Breed Zero Hour TesseracT Gojira Carcass

Textures

Periphery Forbidden

Septic FleshStrapping Young Lad Lamb of God Nile Mastodon

Page 45: Data Mining Music

#SXMusicData

Boil the Frog

Page 46: Data Mining Music

#SXMusicData

Music is data too

Page 47: Data Mining Music

Sections

Bars

Beats

Segments

The Beat Hierarchy

Tatums

Page 48: Data Mining Music

#SXMusicData http://labs.echonest.com/click/

Page 49: Data Mining Music

#SXMusicData

Page 50: Data Mining Music

#SXMusicData

Page 51: Data Mining Music

#SXMusicData

Page 52: Data Mining Music

#SXMusicData

Page 53: Data Mining Music

#SXMusicData

Fun with Loudness data

Page 54: Data Mining Music

#SXMusicData

Why does today’s music sound like crap?

http://musicmachinery.com/2009/03/23/the-loudness-war/

Dave Brubeck’s Take Five - released in 1959

20 dB of dynamic range

Page 55: Data Mining Music

#SXMusicData http://musicmachinery.com/2009/03/23/the-loudness-war/

Metallica’s Cyanide - released in 2008

Why does today’s music sound like crap?

3 dB of dynamic range

Page 56: Data Mining Music

#SXMusicData http://musicmachinery.com/2009/03/23/the-loudness-war/

The Loudness wars

Page 57: Data Mining Music

#SXMusicData

Fun with Loudness Info

http://musicmachinery.com/2011/09/18/looking-for-the-slow-build/

Looking for the slow build

Page 58: Data Mining Music

#SXMusicData

Fun with Loudness InfoLooking for the slow build

Page 59: Data Mining Music

#SXMusicData

Fun with Loudness InfoLooking for the slow build

Page 60: Data Mining Music

#SXMusicData

Fun with Loudness InfoLooking for the slow build

Page 61: Data Mining Music

#SXMusicData

Timbre and Pitch Data

Page 62: Data Mining Music

#SXMusicData

Fun with Timbre info

http://static.echonest.com/BohemianRhapsichord/index.html

Bohemian Rhapsichord

Page 63: Data Mining Music

#SXMusicData

Fun with Pitch info

MIDEM Music Machine

http://static.echonest.com/MidemMusicMachine/index.html

Page 64: Data Mining Music

Data-driven music manipulations

Turning music into silly putty

Page 65: Data Mining Music

#SXMusicData

Data-driven music remixing

Once you have precise information on all of the musical events in a song, you can use this info to algorithmically

remix the song

Page 66: Data Mining Music

#SXMusicData

Tristan’s The SwingerMakes any song swing

Page 67: Data Mining Music

#SXMusicData

Tristan’s WaltzifyTurns a 4/4 song into a Waltz

Page 68: Data Mining Music

#SXMusicData

I’ve got 10 million songs in my pocket.Now what?

Tools and techniques that help us better understand the world of music

will be increasingly important

Page 69: Data Mining Music

#SXMusicData

A cautionary noteTaste is irrational

Music I Like

Music You Like

Music I UsedTo Like

Get this t-shirt at dieselsweeties.com

Page 70: Data Mining Music

#SXMusicData

http://musicmachinery.com/

More like this

Page 71: Data Mining Music

#SXMusicData

http://blog.last.fm/category/Trends-and-Data/

More like this

Page 72: Data Mining Music

#SXMusicData

Data Mining Music

Questions?

Paul [email protected]

@plameremusicmachinery.com