Difference between revisions of "Listening Room ChucK tutorial"

From CCRMA Wiki
Jump to: navigation, search
Line 50: Line 50:
 
7) On the fader box, hit "Linux" then "Preset".  The fader box is the one that looks like this:
 
7) On the fader box, hit "Linux" then "Preset".  The fader box is the one that looks like this:
  
[[File:BCF2000-top.jpg]]
+
[[File:BCF2000_top.jpg]]
  
 
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!
 
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!

Revision as of 12:22, 4 December 2009

Note - this tutorial doesn't use Jack, and there could be a cleaner way to do this with fewer steps, but it works and is fairly easy to do

0) Log in to the linux box which is NOT the openmixer box (there should be two monitor/keyboard/mouse combos you can use to do this, one in the middle of the room and one in the corner). You can tell that it's not the openmixer computer because there is no sticker on the monitor which says "OPENMIXER WORKSTATION: DO NOT LOGIN!" on it.

1) Download the MiniAudicle for Linux here.

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 HDSPMixer - click on "Applications" at the top left, then go to "Sound and Video", then find and click on HDSPMixer.

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

   ModalBar sin;
   
   8 => sin.preset;
   
   Gain g[16];
   
   .1 => 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(60+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. It should look like this: (if it doesn't, get help!)

Hdsptest.png

7) On the fader box, hit "Linux" then "Preset". The fader box is the one that looks like this:

BCF2000 top.jpg

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. Then, seek help!