It’s possible to output sound over multiple audio channels from Processing using a usb Audio Interfaces like the Gigaport HD+ or AG. The initial installation is a little fiddly, however once you have your system setup in will run perfectly every time.
...
It’s not possible for Processing to simply send multiple audio channels to the one device, so we are going to setup OSX to treat the Audio Interface as if it where multiple stereo devices. Then we will be able to send stereo audio to each of these virtual devices in Processing.
Steps
- Connect the device by USB cable to your computer, and then open the “Audio MIDI Setup” Utility in OSX.
- Click the “add” icon in the lower left corner and select “Aggregate Device”.
- In the options screen tick “Use” next to the USB Audio Interface. Right click the Device and select “Configure Speakers”. Here you are going to assign channels 1 to “left" and 2 to “right”.
- Repeat the above steps, until you have enough channels for your project.
Processing
Install minim library and try out the following example code:
...