Home

Installing ChucK on Ubuntu

Lately, I’ve been getting into this thing called “live coding”. It’s an improvisational programming technique used to orchestrate light and sound. I’ve watched a few demos of it and I’m already hooked on the idea of learning how to do this sort of thing. Currently, I’m taking a couple of classes to become better at programming, so I feel like it’s the perfect thing to play around with for fun.

I’m using the ChucK programming language to get a feel for making music with algorithms. It’s a language made specifically for manipulating sound and it’s fun to play with, but what wasn’t fun was figuring out how to install it on Ubuntu.

I had no problems installing with Mac, but the Ubuntu installation was a bit more involved. I tried the old ./configure, make, make install trick on the source file but I was missing too many dependencies for it to run. I then checked for an apt-get package but then chuck told me that I was missing an audio API to connect to so I was stuck with a music programming language that couldn’t make a sound.

After searching through message boards, mailing lists, and blogs, I was able to find a solution from a post about “Using a DDR dance mat as a musical instrument”. Not my intention, but cool idea.

The author had figured out that you need to run apt-get chuck with another application call jackd. First you need to run the installation:

$ sudo apt-get install chuck jackd

ChucK still won’t work since you need jackd running at the same time, so once you have jackd installed, go ahead and run this in a new terminal:

$ jackd -d alsa

Leave that terminal running in the background somewhere and then proceed to run ChucK with this line:

$ chuck --srate48000 *.ck

And that should be it. After running that last line I was able to hear some audio from my speakers.

If you have a Mac, rejoice. It’s only one click. FML

Comments