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-requ...@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-requ...@lists.cs.princeton.edu
> 
> You can reach the person managing the list at
>       chuck-users-ow...@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" <matthew.no...@ul.ie>
> To: "chuck-users-requ...@lists.cs.princeton.edu"
>       <chuck-users-requ...@lists.cs.princeton.edu>,
>       "chuck-users@lists.cs.princeton.edu"
>       <chuck-users@lists.cs.princeton.edu>
> Subject: [chuck-users] Multichannel Mono Output using ChucK
> Message-ID:
>       
> <db3pr0302mb332457e5b33eb57bb1603bdafc...@db3pr0302mb3324.eurprd03.prod.outlook.com>
>       
> 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
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20200130/e683c550/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 30 Jan 2020 10:02:08 -0600
> From: Michael Heuer <heue...@gmail.com>
> To: ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu>
> Subject: Re: [chuck-users] Multichannel Mono Output using ChucK
> Message-ID: <f40d3f7b-55dc-46ce-8b66-22e31d728...@gmail.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hello Matthew,
> 
> What does chuck --probe show for your sound card?
> 
>   michael
> 
> 
>> On Jan 30, 2020, at 9:43 AM, Matthew.Noone <matthew.no...@ul.ie> wrote:
>> 
>> 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
>> 
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users@lists.cs.princeton.edu 
>> <mailto:chuck-users@lists.cs.princeton.edu>
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users 
>> <https://lists.cs.princeton.edu/mailman/listinfo/chuck-users>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20200130/c677d5bb/attachment.html>
> 
> ------------------------------
> 
> _______________________________________________
> chuck-users mailing list
> chuck-users@lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
> 
> 
> End of chuck-users Digest, Vol 173, Issue 14
> ********************************************

_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users

Reply via email to