The easiest way to install the Python version of Remix is to use pip or easy_install.
sudo pip install remixor:
sudo easy_install remixYou'll need a C compiler like gcc or clang too.
If those commands are meaningless to you, if you want to build from source, or if those commands don't work, don't worry! We have simple installers and install notes for every platform:
Once you've got your key, read this key install tutorial for Windows, Mac or Linux.
For the experts in the room, just set the environment variable you need:
export ECHO_NEST_API_KEY="your api key"
Once you've got your API key set up, try one of the examples.
A good place to start is with one.py. Turn on your terminal, go to the examples folder, and
python one/one.py music/Karl_Blau-Gnos_Levohs.mp3 AllOnTheOne.mp3Congratulations! You've made your first remix with Remix!
We have a Python tutorial that you should to look at!. The tutorial folder has a number of examples with line-by-line comments explaining how Remix works. If you have any questions about how to make Remix remix, contact us.
Finally, here's a bit of code to whet your appetite. Happy remixing!
"""Reverse a song by playing its beats forward starting from the end of the song""" import echonest.remix.audio as audio # Easy around wrapper mp3 decoding and Echo Nest analysis audio_file = audio.LocalAudioFile("NeverGonnaTellIt.mp3") # You can manipulate the beats in a song as a native python list beats = audio_file.analysis.beats beats.reverse() # And render the list as a new audio file! audio.getpieces(audio_file, beats).encode("NeverGonnaTellItBackwardsByBeat.mp3")