MUSC 208. Computer Music and Sound. Winter 2014

[Syllabus]

Mac Laptop MIDI Setup for ChucK

Additional Installs

Au Lab

Au Lab can be found in the course Common folder. Choose the version that corresponds to the Mac OS X version you are using. To install, drag the Au Lab icon into the /Applications folder.

Au Lab icon

Au Lab instructions below beginning with Audio MIDI Setup.

Soundflower

http://cycling74.com/soundflower-landing-page/

Soundflower was used in Lab 4, p. 41 ff. It describes a modified Au Lab setup to the one presented here.

Audacity 2.0.5

http://audacity.sourceforge.net/download/

Audio MIDI Setup

Open Audio MIDI Setup

The Audio MIDI Setup (AMS) application is found in the /Applications/Utilities folder.

Shortcut: Apple-Shift-U in the Finder.

Audio MIDI Setup icon

Choose Show MIDI Window from the Window menu if it is not already open.

Show MIDI menu

You'll need to create a new AMS configuration for yourself. Choose New Configuration from the Configuration popup menu.

new MIDI configuration

Name the new configuration m208 and Click OK.

name new configuration

In the MIDI Studio window you'll need to Activate the IAC (Inter Application Communication) Driver. In this picture it's shown as a deactivated gray icon.

IAC driver disabled

Double click the IAC Driver icon in the MIDI Studio window. Make sure the "Device is online" checkbox is checked.

IAC device online checked

Close the Window.

The IAC Device icon should be displayed in its active state (not grayed out). You may have to use the Confuguration popop menu and switch to Default and then back to m208 to see the change.

IAC driver enabled

Close AMS.

AU Lab Setup

Note: These screen shots are from Au Lab 2.2.1 running on Mac OS X 10.7.5.

Open AU Lab.

AU Lab icon

If the following window does not appear skip to New Configuration from the File menu.

AU Lab 1

Click Next.

AU Lab 2

Click Next.

New Configuration

Au Lab 3

Click Create Document. An Untitled window will appear.

Au Lab 3a

Choose Add Audio Unit Instrument from the Edit menu.

AU Lab 4

Make these settings n the dialog that appears:

AU Lab 4a

Click OK.

The main AU Lab window has added a second Output strip ...

AU Lab 5

and the Stereo Mix: DLSMusicDevice window will appear.

Choose MIDI Editor from the far right drop down menu.

AU Lab 6

The MIDI Editor window will appear.

Click and hold on Channel box 1 and drag the mouse to the right until channels 1-16 are selected.

AU Lab 7

Close the window by clicking the red button at the top left of the window.

AU Lab 8

Choose Save As from the File menu.

AU Lab 9

Making the Changes Semi Permanent

In the Save As dialog save this file as m208.trak.

AU Lab 10

Click Save.

Choose Preferences from the AU Lab menu.

AU Lab 11

Click the Documents tab in the Preferences dialog. Select the "Open a specific document:" radio button. Then click the Choose... button. When the File Open dialog appears, navigate to the YOUR_DRIVE. Select your AULabDLS.trak file and click Open.

AU Lab 12

Close Preferences. Quit and restart AuLab. The m208.trak file should open automatically with the correct settings.

ChucK and MIDI

Important: You must start AuLab before starting miniAudicle or Terminal if you're running ChucK in the Terminal.

Open Au Lab

Open /Applications/Au Lab

AU Lab icon

Open Terminal and Type chuck —probe

chuck probe command

At the end of the output you'll see all MIDI inputs and outputs ChucK can find. In this case it found one input and two outputs.

chuck probe results

IAC Driver Bus 1

Input and Output [0] use the IAC driver. IAC stands for Inter Application Communication and is part of MacOS. The IAC Driver allows you to connect ChucK to many commercial MIDI applications like GarageBand, LogicPro, Abelton Live, Reaktor, Reason, and others. ChucK can use this.

DLSMusicDevice

This is the General MIDI software synthesizer supplied by Apple and is part of MacOS. ChucK can use this.

Quick ChucK MIDI Output Test

Enter and run this code in miniAudicle.

midiTest code

Recording ChucK Audio

The above discussion only applies when ChucK is playing MIDI. When ChucK is generating audio you can use ChucK's wvOut class as described in Lab 4, ABC Song.

 

Revised John Ellinger, Winter 2014