A python script that converts a song to 3/4 time using the Echo Nest API
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
waltzer.py

README

walterz.py is licensed under the MIT License

A basic script to convert a song in 4/4 to 3/4. This script is useful for people who like to waltz.

This is a simple script that stretches the 1st and 4th beat and makes the 2nd and 3rd beat twice as fast as the 1st and 4th beat. There are probably other ways to convert a song to 3/4 such as cutting out out the 2nd beat entirely. I welcome any feedback.

Large parts of this script are from Tristan Jehan's swinger.py which can be found here:
http://code.google.com/p/echo-nest-remix/source/browse/trunk/examples/swinger/swinger.py

My original intention for this script was to play around with the Echo Nest API, exercise my python scripting abilities, and create a simple way to convert a song to 3/4. There's a lot of room for this project to grow. 

BASIC INSTALLATION STEPS
1. Get an API Key: http://developer.echonest.com/
2. Install the python client library for Echo Nest: http://code.google.com/p/pyechonest/
3. Add the API key to the client library. Follow instructions listed from the webpage on step 2.
3. Run "python waltzer.py [song file]" to convert song

Note: For Ubuntu users, you may need to install an mp3 encoder such as LAME: http://lame.sourceforge.net/ or ffmpeg: http://ffmpeg.org/. For other operating systems, I am unsure what you will need to install, but if you email me what you had to do, I can add them to this readme.

yarun.luon@gmail.com