Listening Room ChucK tutorial

From CCRMA Wiki
Revision as of 15:42, 3 December 2009 by Craffel (Talk | contribs)

Jump to: navigation, search

1) Download the MiniAudicle for Linux: [1] (note - this may not be necessary, but it certainly works, at least).

2) Unzip the archive, cd to the unzipped directory in Terminal, and type make linux-alsa

3) Now go into the unzipped directory, and you'll find the MiniAudicle app inside of the wxw folder. Open it.

4) Open hDSP Mixer.

5) Run this example code: (copy and paste it, hit "add shred")

   ModalBar sin;
   
   8 => sin.preset;
   
   Gain g[16];
   
   .15 => float delay;
   
   for (0 => int i; i < 16; i++)
   {
       sin => g[i];
       0 => g[i].gain;
       g[i] => dac.chan(i);
   }
   
   while(true)
   {
       for (0 => int i; i < 16; i++)
       {
           Std.mtof(40+2*i) => sin.freq;
           sin.noteOn(1);
           .8=> g[i].gain;
           if(i == 0) { 0 => g[15].gain; }
           else { 0 => g[i-1].gain; }
           delay::second => now;
           0 => g[i].gain;
           delay::second => now;
           sin.noteOff(0);
       }
   }

6) Now in HDSPMixer, you should see the level meters registering a signal.

7) On the fader box, hit "Preset". You should hear sound now, with notes cascading around the room. If you don't, try restarting the openmixer box: it's the bigger computer which is connected to the monitor which says "OPENMIXER WORKSTATION: DO NOT LOGIN!". Find the computer and press "reset" on the front panel. If you still don't get sound. hit "Zero" then "Linux" on the fader box, then turn up the leftmost fader. Now, on the knob box, turn up the third knob down in the leftmost column (if you think of the knob box as a 8x4 matrix, this is in location 3, 1). You should be hearing sound now out of one of the speakers. If you aren't, something is awry, and find help!

8) If you are experiencing popping and clicking, try entering cpufreq-selector -g performance into a terminal window. (Thanks Jason Sadural for this)

9) If you notice that channels are "pairing", that is, if you change the pan value on one channel and it changes the pan value on another channel too, try resetting the openmixer computer. (Thanks Jason for this too)

10) Rule of thumb: When in doubt, try restarting the openmixer computer first.