Daily Sample Set

From Music Hack Day

Jump to: navigation, search

Every Day a Fresh Sample Set

 A ruby script pulling the hottest downloadable uncompressed Creative Commons tracks from SoundCloud from within the last 24 hours. 
 They are sent to echonest for analyzation. Then short samples are chosen and uploaded to SoundCloud again.

Get it from Github, code is here: http://github.com/freenerd/daily-sample-set

You can see the uploaded samples here on SoundCloud http://soundcloud.com/daily-sample-set

This is how the output in the console look:

  .__     .      __.           .      __.    , 
  |  \ _.*|  .  (__  _.._ _ ._ | _   (__  _ -+-
  |__/(_]||\_|  .__)(_][ | )[_)|(/,  .__)(/, | 
           ._|              |
 Fetching the latest public downloadable uncompressed files from SoundCloud
 ||||||||||||||||||||||||||||||||||||||||||||||||||
 finished fetching tracks from soundcloud with offset 0
 ||||||||||||||||||||||||||||||||||||||||||||||||||
 finished fetching tracks from soundcloud with offset 50
 ||||||||||||||||||||||||||||||||||||||||||||||||||
 finished fetching tracks from soundcloud with offset 100
 ||||||||||||||||||||||||"#"
 --2010-09-05 14:45:47--  http://soundcloud.com/m2k-wbg/snipe-first-reason-4-session/download
 Resolving soundcloud.com... 91.194.74.8
 Connecting to soundcloud.com|91.194.74.8|:80... connected.
 HTTP request sent, awaiting response... 302 Moved
 Location: http://ak-media.soundcloud.com/e6SmxvZzxYqc?AWSAccessKeyId=0ZDZC4RXJ8N15Y1R1M82&Expires=1283694367&Signature=2oywXlPK8%2BAcAgdpjkJqjKSLuGI%3D&__gda__=1283694367_084507cde485be81d8b1405102940e29 [following]
 --2010-09-05 14:45:47--  http://ak-media.soundcloud.com/e6SmxvZzxYqc?AWSAccessKeyId=0ZDZC4RXJ8N15Y1R1M82&Expires=1283694367&Signature=2oywXlPK8%2BAcAgdpjkJqjKSLuGI%3D&__gda__=1283694367_084507cde485be81d8b1405102940e29
 Resolving ak-media.soundcloud.com... 77.67.30.33, 77.67.30.26
 Connecting to ak-media.soundcloud.com|77.67.30.33|:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 6078416 (5.8M) [audio/x-wav]
 Saving to: `originals/snipe-first-reason-4-session.wav'
 100%[=================================================================================================>] 6,078,416    248K/s   in 39s     
 2010-09-05 14:46:26 (154 KB/s) - `originals/snipe-first-reason-4-session.wav' saved [6078416/6078416]
 "file snipe-first-reason-4-session.wav written"
 finished fetching tracks from soundcloud with offset 150
 snipe-first-reason-4-session: sending to echonest
 snipe-first-reason-4-session: fetched info -> splitting file
 snipe-first-reason-4-session: split ./samples/snipe-first-reason-4-session.wav1.wav
 snipe-first-reason-4-session: split ./samples/snipe-first-reason-4-session.wav2.wav
 snipe-first-reason-4-session: split ./samples/snipe-first-reason-4-session.wav3.wav
 Let's upload the Samples to SoundCloud
 Uploaded Sample Number 3 to SoundCloud 
 Uploaded Sample Number 2 to SoundCloud 
 Uploaded Sample Number 1 to SoundCloud 
 We are done here for today.
 Have a nice (hack) day.

Todo:

 Have a website where it is running automatically
 Post the samples of a day to a set
 Post the samples of a day to a blog
 Enable mp3 encoding?

Hack done by Johan http://www.freenerd.de

Personal tools