[chuck-users] Multichannel Mono Output using ChucK (Matthew.Noone)

Nunn, Douglas Douglas.Nunn at anglia.ac.uk
Thu Jan 30 19:13:09 EST 2020


Note that in v1.3.4.0 here's a bug in parsing the --dac flag. I don't know if this has been fixed in a later version. (I have to use this version as there's an ASIO build.)

Use --dac_1 or --dac01 to fix this.

See http://electro-music.com/forum/topic-69370.html

________________________________________
From: chuck-users-bounces at lists.cs.princeton.edu [chuck-users-bounces at lists.cs.princeton.edu] on behalf of Perry Cook [prc at cs.princeton.edu]
Sent: 30 January 2020 17:35
To: chuck-users at lists.cs.princeton.edu
Subject: Re: [chuck-users] Multichannel Mono Output using ChucK (Matthew.Noone)

TAKE CARE: this message originates from an e-mail service outside of our University. Do not click on any links or open attachments unless you recognise the sender and are absolutely sure that the content is safe


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 at lists.cs.princeton.edu wrote:
>
> Send chuck-users mailing list submissions to
>       chuck-users at 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 at lists.cs.princeton.edu
>
> You can reach the person managing the list at
>       chuck-users-owner at 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.Noone at ul.ie>
> To: "chuck-users-request at lists.cs.princeton.edu"
>       <chuck-users-request at lists.cs.princeton.edu>,
>       "chuck-users at lists.cs.princeton.edu"
>       <chuck-users at lists.cs.princeton.edu>
> Subject: [chuck-users] Multichannel Mono Output using ChucK
> Message-ID:
>       <DB3PR0302MB332457E5B33EB57BB1603BDAFC040 at 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 <heuermh at gmail.com>
> To: ChucK Users Mailing List <chuck-users at lists.cs.princeton.edu>
> Subject: Re: [chuck-users] Multichannel Mono Output using ChucK
> Message-ID: <F40D3F7B-55DC-46CE-8B66-22E31D7287E2 at 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.Noone at 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 at lists.cs.princeton.edu <mailto:chuck-users at 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 at 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 at lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
--

[British Science Fair] <https://aru.ac.uk/news/british-science-festival-heads-to-chelmsford>

-- 
Please click here to view our e-mail disclaimer http://www.anglia.ac.uk/email-disclaimer



More information about the chuck-users mailing list