3. ChucK with the Anjuta IDE
Anjuta is going to be useful for editing programs in different languages. Please follow the following steps. The very first time requires installation of some files. Do this once:
1. Open a terminal. Then change directory to:
cd ~cc/220a/system
2. Run install script by writing in your terminal:
guile -s install.scm
After these steps you will have a new directory in your home directory called “scripts-220a-user” which sets up tools for editing. We'll use if for chuck at this point and for scheme/snd in a couple of weeks.
For editing chuck files, first start JACK, then start a chuck server with
chuck --loop
in a terminal. Then, in a second terminal start the editor with
anjuta &
Use Anjuta's File : Open dialog to bring in the file to be edited (or you could have specified it in the command line). One it's open, you can run it with Edit : chuck-add-shred (it will save the current state of the file and send it to the server to play). Tell the server to stop playing current shreds with Edit : chuck-remove-10shreds (which brutally shuts down the first 10 shreds, if any).
_____________________
Assignment: Recreate the basic structure of the THX logo, aka Deep Note, a sound we've grown to know and love in theaters and DVD intros. Our 10-second version is in the style of "complete the puzzle" and all the hints you need are included in some example files you'll run. The basic structure consists of a large number of sines at random frequencies sliding into harmonic relations. The real Deep Note is more tricky, but we'll stay basic for the assignment. In previous years, we used 500 sines and computed them out of real time. This year we use a smaller set and do it real time.
For some lore about it see:
http://musicthing.blogspot.com/2005/05/tiny-music-makers-pt-3-thx-sound.html
Step 1: pick a number between 50 and 80 inclusive and write it down
Step 2: create a working directory for the assignment, like ~/220a/hw4, then copy ~cc/220a/ck/sine/*.ck into the working directory, open hw4.ck in anjuta
Step 3: do all the parts -- that is where the hard work happens --
Step 4: capture the sound to a .wav file when you're ready, and instead of audacity this time use ecasound in another terminal
(quit with <ctrl>c when done recording)
ecasound -i jack_auto,RtApiJack -o /zap/test.wav
Step 5: view a sonogram in snd of your result using settings that let you see the overall texture of your Deep Note
Step 6: save the soundfile in the usual place as hw4.wav