Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hughrawlinson/chuck_demos

Store ChucK code with continuous integration of audio to SoundCloud
https://github.com/hughrawlinson/chuck_demos

chuck continuous-delivery soundcloud soundcloud-api travis

Last synced: 3 months ago
JSON representation

Store ChucK code with continuous integration of audio to SoundCloud

Awesome Lists containing this project

README

        

_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](https://travis-ci.com/hughrawlinson/chuck_demos.svg?token=iisGGMb1xGgxpKy2xqhq&branch=master)](https://travis-ci.com/hughrawlinson/chuck_demos)

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
1. [Fork this repository](https://github.com/hughrawlinson/chuck_demos/fork)
2. Go to travis-ci.com, log in, and turn on CI for your fork
3. 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!
4. Write some cool ChucK code
5. 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!