![](https://secure.gravatar.com/avatar/040cf872d4b2a16792341f0229136c85.jpg?s=120&d=mm&r=g)
The trick here is you also have to tell ChucK to be 4 channels. From the command line: chuck -c8 YourFile.ck depending on what your —probe shows, you might even have to specify which dac (and adc) to use, especially if they’re different device numbers or channel numbers. Also, might need to up the buffer size to avoid clicking, especially for lots of channels. Examp: chuck -c8 -bufsize2048 -in2 --dac1 --adc0 YourFile.ck Hope this helps, PRC PS: If you’re using MiniAudicle, then you need to do some menu stuff to pick output/input devices, and numchannels as well.
On Jan 30, 2020, at 8:02 AM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. Multichannel Mono Output using ChucK (Matthew.Noone) 2. Re: Multichannel Mono Output using ChucK (Michael Heuer)
----------------------------------------------------------------------
Message: 1 Date: Thu, 30 Jan 2020 15:43:06 +0000 From: "Matthew.Noone"
To: "chuck-users-request@lists.cs.princeton.edu" , "chuck-users@lists.cs.princeton.edu" Subject: [chuck-users] Multichannel Mono Output using ChucK Message-ID: Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I am trying to get multichannel output (to four speakers) using ChucK.
I'm running on a Mac and using a Scarlett 18i8.
I've tried running this test code.
SinOsc s0 => dac.chan(0);
SinOsc s1 => dac.chan(1);
SinOsc s2 => dac.chan(2);
SinOsc s3 => dac.chan(3);
3::second => now;
But I get this error.
chuck](VM): NullPointerException: (UGen link) on line[3] in shred[id=1:MULTI]
Any ideas? With thanks, Matthew
Dr. Matthew James Noone Sarode Artist & Irish Research Council Postdoctoral Fellow Irish World Academy of Music and Dance University of Limerick