Making acrostic playlists

I’m at the Tufts Hackathon showing off the Echo Nest API for the very smart students.  I’m not going to be here for the whole hackathon, so I don’t have time for a proper hack, but I thought I should write something.  Since I just pushed out a new Python library for The Echo Nest this week (Pyen), I thought I’d write a simple python hack that uses it.

The hack is an acrostic playlist maker. You give it a genre and a secret message and it will create a playlist where the secret message is embedded in the playlist as an acrostic.  Here’s an example:

% python acrostic.py ‘dubstep’ ‘Skrillex Rules’

Setting Sun by Caspa
Kemancheh by Moving Ninja
Rainy Dayz by Kromestar
I Need Air by Magnetic Man
Little More Oil Featuring Sister Nancy by DJ /rupture
Low Pressure Zone by Clubroot
El Rythmo de Este Sound by Coki
Xingfu Lu by Kode9

Rutten by Skream
Under Water High Rise (feat. DJ Kiva) by DJ /rupture
Lift Me Up by Rusko
Embryo by Clubroot
Summer Rain by 2000F

Here are some more examples:

Like Me by Girlicious
I Have Nothing by Whitney Houston
Survivor by Destiny’s Child
True Love by P!nk
Ever Ever After by Jordan Pruitt
Never Gonna Happen by Colette Carr

Try by P!nk
Opposites Attract by Paula Abdul

Falling by Brooke Hogan
I’M Gonna Miss You Forever by Aaron Carter
Fixing My Hair by Priscilla Renea
That’s How I Beat Shaq by Aaron Carter
Hurt by Christina Aguilera

Halo by Beyoncé
A Little Party Never Killed Nobody (All We Got) by Fergie
Raise Your Glass by P!nk
Mirrors by Justin Timberlake
Only Girl (In The World) by Rihanna
Nothing In This World Will Ever Break My Heart Again by Hayden Panettiere
You’re Not The One by Sky Ferreira

Here’s a heavy metal playlist:

Mothra by Anvil
A Dying God Coming Into Human Flesh by Celtic Frost
Refuse/Resist by Sepultura
Blue Sky by Wolfsbane
Lord Of The Flies by Rage
Excalibur by Grave Digger
Cry My Name by Bloodbath
Attitude by Sepultura
King Of The Kill by Annihilator
Eaten (2008 Digital Remaster) by Bloodbath

Alison Hell by Annihilator
Last Man Standing by HammerFall
Steelhammer by U.D.O.
Outnumbering The Day by Bloodbath

The Last In Line by Dio
Hades Rising by Bloodbath
Evil by Mercyful Fate

Give Me Your Soul by King Diamond
Anthem by Iced Earth
Metal On Metal by Anvil
Enemies Of Reality (re-mixed & re-mastered) by Nevermore

Some experimental music

Don’t Eat The Yellow Snow by Frank Zappa
On Suicide by Art Bears

No.1 Against the Rush by Liars
Optical Black by Thighpaulsandra
Third Stream Boogaloo by Derek Bailey

Lock Your Door by Lydia Lunch
In A Manner Of Speaking by Tuxedomoon
So Far by Faust
The Seer Returns by Swans
Electric To Me Turn by Bruce Haack
Numb Erone by The Residents

Triumph by This Heat
Oh Yeah by Can

Krautrock (2006 Digital Remaster) by Faust
Always Returning (2005 Digital Remaster) by Brian Eno
Twilight Furniture by This Heat
Your Hidden Dreams by White Noise

Persuasion by Throbbing Gristle
Evan’s Drive To Mombasa by Lounge Lizards
Remember Waht’s In There by Lounge Lizards
Radio Prague by This Heat
Yellow Brick Road by Captain Beefheart

Here’s the code:

[gist https://gist.github.com/plamere/7163346 /]

 

Well, that’s my mini-hack. 73 lines of Python and one blog post.

%d bloggers like this: