This is a hack from link Music Hack Day London 2010.
It pulls the hottest downloadable uncompressed cc-licensed tracks from SoundCloud, analyses them with EchoNest, slices them on a bar basis with Sox and uploads the slices again to SoundCloud.
This hack is similar to the link SoundEchoCloudNest hack by Hannes and uses the EchoNest API wrapper fork by him.
-
Install the SoundCloud Ruby API Wrapper github.com/soundcloud/ruby-api-wrapper
-
Install Sox sox.sourceforge.net/
-
Install wget www.gnu.org/software/wget/
-
Install the Echonest API wrapper fork by Hannes github.com/hannestyden/ruby-echonest/
-
Register for an Echonest API Key developer.echonest.com/docs/v4/
-
Register for a SoundCloud API Application soundcloud.com/developers
-
Get an SoundCloud Access Token | you can use this script for that github.com/jwagener/sc-shell/blob/master/soundcloud-authorized.rb
-
Put all these information in /setup.rb which should then have
ECHONEST_API_KEY SC_CONSUMER_KEY SC_CONSUMER_SECRET SC_ACCESS_TOKEN SC_ACCESS_TOKEN_SECRET
-
Create the folders /originals and /samples
-
Run with # ruby dailysampleset.rb