The aim of the Echo Nest Remix API is to let you manip­u­late and remix music and video through code. Execute the few lines below:

import echonest.audio as audio
audio_file = audio.LocalAudioFile("input.mp3")
beats = audio_file.analysis.beats
beats.reverse()
audio.getpieces(audio_file, beats).encode("output.mp3")

And you have now reversed a song by ‘play­ing its beats for­ward from the end of the song’. The out­put of which would look a little some­thing like this.mp3.

First off, you’re going to need to grab an API key by regis­ter­ing an account. If you’re using OS X you can fol­low this install pro­cess (here’s Linux and Win­dows). Make sure to run the example at the end of the install­a­tion pro­cess to con­firm that everything works.

Con­grat­u­la­tions! You can now mess around with beats and manip­u­late all your mp3s and videos. Try out the rest of the examples to get an idea for just what the Echo Nest Remix API can do. To get an idea of just how power­ful the (upcom­ing) video manip­u­la­tion is, check out Where’s The Pow by Paul Lamere in which he remixes the Black Eyed PeasBoom Boom Pow.


Leave a Reply

Details

'The Echo Nest Remix API' was posted on June 22nd, 2009 in the Category: Tutorials.

You can subscribe to the comments on this post, or post a comment of your own



Related Posts