Posts Tagged song searcy
It seems like every heavy metal band has at least one chill-out song – from Metallica’s Nothing Else Matters to Led Zeppelin’s That’s the Way. These tracks give some relief from the otherwise relentless pounding of the hammer of the gods. It’d be nice to be able to collect up a bunch of these chilled-metal songs into a playlist – perfect for when your mom’s visiting (she tells me that she doesn’t like pounding metal).
To find chilled metal, we can use The Echo Nest API. The Echo Nest has calculated a wide range of acoustic and musical attributes for millions of songs. One such attribute is energy . We can make a simple song/search query for heavy metal songs that have low energy. These will be our chilled-metal songs that your mom enjoys so much. Here’s the API query:
This query searches for songs by heavy metal artists, and sorts the results in order of ascending energy (so the lowest energy tracks will be returned first). The query does a really good job of finding chilled metal. Here’s a sampling of the results:
Sphinx (The Guardian) by Black Sabbath – energy: 0.0003
Demon Drive by Gillan – energy: 0.010
The Return by Saxon – energy: 0.013
Solitude by Judas Priest – energy: 0.049
Joan of Arc by UFO – Energy: 0.05
Fear by Black Label Society – Energy – 0.119
You can toss this playlist into a player like VLC or Songbird that supports XSPF and start listening to chilled metal right away (30 second samples only) like this:
% curl 'http://developer.echonest.com/api/v4/playlist/static?api_key=N6E4NIOVYMTHNDM8J\ &style=heavy+metal&max_energy=.1\ &type=artist-description&bucket=id:7digital&bucket=tracks&limit=true\ &format=xspf' > chilled-metal.xspf
% open chilled-metal.xspf
There you go, you now have all the tools you need to keep your chilled metal queue filled and fresh, almost everything you need to keep your mom happy.
Thanks much to 7Digital for providing audio clips and album art.
Welcome to Music Machinery - the blog about the interface of music and technology written by Paul Lamere.
- generative music
- music hack day
- music information retrieval
- The Echo Nest
- web services
- zero ui