Reprogrammed Sound On R2-D2

Well, I’m on vacation this week.  And that means plenty of time to work on R2 building.  While I was scouring the tutorials online, I found one that lets you write custom code for the CFSound III audio system.  Hence, the 16 buttons on my remote that used to control 16 individual sounds, now control over 100 different sounds instead.  Pressing certain switches for chatty, mad, or sad sounds now cycle through a long list of sounds, so R2 won’t sound like he’s repeating himself.

I also created different “modes” for the switches.  So if I’m in mode 1, switch 11 might always play Leia’s short message (”Help me Obi-Wan Kenobi, you’re my only hope.”).  But if I’m in mode 2, the same switch now plays the full message.  The same can be done to store store a bunch of different songs under another switch.

Next, I created a true random mode.  Before I just had an audio loop, so the “random” sounds were always in the same order, and always ended after 3 minutes.  This new mode picks generic and chatty sounds at random, and keeps them going until I stop it.

And finally, since I’m saving a number of switches on the remote now, I was able to dedicate the last two as volume controls.  This means I won’t have to open up Artoo to adjust the volume.  Handy!!