Skip to content

Store ChucK code with continuous integration of audio to SoundCloud

Notifications You must be signed in to change notification settings

hughrawlinson/chuck_demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heads Up: Soundcloud aren't providing API keys at the moment, so this project isn't super useful for now. Hoping they change their minds and open up their API again soon.

ChucK Demos

Build Status

This is a project for me to be able to write ChucK code, commit it to this repo, and have it appear on SoundCloud via the magic of continuous integration.

Usage

  1. Register a SoundCloud API Application, note the client id and client secret
  2. Fork this repository
  3. Go to travis-ci.com, log in, and turn on CI for your fork
  4. Set the 'SOUNDCLOUD_USERNAME', 'SOUNDCLOUD_PASSWORD', 'SOUNDCLOUD_CLIENT_ID', and 'SOUNDCLOUD_CLIENT_SECRET' environmental variables in your Travis project. Make sure to leave the 'Display value in build log' toggle off, otherwise people can grab your creds!
  5. Write some cool ChucK code
  6. Commit the ChucK code to the 'code' directory of your fork

Once the code gets built on Travis, you will see it appear on your SoundCloud profile.

Notes

The recordings will be as long as the ChucK script keeps running, up to a total of 5 minutes, when they'll be cut off to preserve SoundCloud space. Of course, you can change this in your fork by modifying rec.ck.

I apologise for the fact that you have to use your credentials, the SoundCloud API doesn't have a great way to authenticate users without a server. If you have a better idea, I'd welcome a pull request!

This repo uses my own ChucK debian package because the one in the Ubuntu repos is egregiously out of date and I'm using a recent-ish ChucK feature to handle recording of the audio. Feel free to use my packagecloud repository to grab the debian package if you'd like.

Contributing

I'm all for contributions to this project, but no need to send me ChucK code that sends me audio - fork this project and put it on your own SoundCloud page. Other than that, I love Pull Requests. Send me one!

About

Store ChucK code with continuous integration of audio to SoundCloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published