I don’t remember SndBuf ever being multichannel. In fact, there is a SndBuf2 just for stereo. That UG can be chucked to dac for auto stereo, or allows access to .chan(#) for arbitrary routing. SndBuf mixes everything down to mono, and I fear there is no support for > 2 channels via SndBuf.
If my statements above are true, then Someone could do us all a cool favor by making a SndBufN chug.
Prc
Sent from my iPhoneOn Feb 18, 2019, at 11:39 AM, chuck-users-request@lists.cs.princeton.edu wrote:Send chuck-users mailing list submissions tochuck-users@lists.cs.princeton.eduTo subscribe or unsubscribe via the World Wide Web, visithttps://lists.cs.princeton.edu/mailman/listinfo/chuck-usersor, via email, send a message with subject or body 'help' tochuck-users-request@lists.cs.princeton.eduYou can reach the person managing the list atchuck-users-owner@lists.cs.princeton.eduWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of chuck-users digest..."Today's Topics:1. Routing stereo sound file to dac channels (Scott Smallwood)2. Re: Routing stereo sound file to dac channels (Nunn, Douglas)----------------------------------------------------------------------Message: 1Date: Mon, 18 Feb 2019 10:45:24 -0700From: Scott Smallwood <ssmallwo@ualberta.ca>To: ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu>Subject: [chuck-users] Routing stereo sound file to dac channelsMessage-ID: <B1298B53-7399-418C-8B1A-0B3C973FC6B8@ualberta.ca>Content-Type: text/plain; charset="utf-8"Dear chuckians?This is bizarre? I was sure I have done this in the past, but it isn?t working and now I?m a bit flummoxed?. Any ideas here?PS: I?m trying to route channels 0 and 1 of a stereo .wav file to dac channels 2 and 3. Should be simple. So why doesn?t this work??I realize that I could just spit it into mono files? but why? I thought SndBuf supported up to 8 channels.?SndBuf sb;//read in stereo sound file"snd/squeakies/bell_4.wav" => sb.read;//works - and routes channel 0 of sb to dac.chan(3)sb.chan(0) => dac.chan(2);//doesn't work - claims NullPointerExceptionsb.chan(1) => dac.chan(3);1::minute => now;?ss[ - ] Scott Smallwood <http://www.scott-smallwood.com/> - Associate Professor - University of Alberta [ - ]-------------- next part --------------An HTML attachment was scrubbed...URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20190218/86dfe813/attachment-0001.html>------------------------------Message: 2Date: Mon, 18 Feb 2019 19:39:09 +0000From: "Nunn, Douglas" <Douglas.Nunn@anglia.ac.uk>To: ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu>Subject: Re: [chuck-users] Routing stereo sound file to dac channelsMessage-ID:<B23CB05EA2542D4DA02D8ABFB5B35BCF0282A313D7@CAM-I-MBX02.anglia.local>Content-Type: text/plain; charset="windows-1252"Hi Scott,Are you on Windows? Did you specify the -in and -out flags? When I last tested it, the non-ASIO build doesn't support multi-channel audio. Also, the -dac flag needs an extra character before the number.If you start the ASIO build of ChucK like this, it works.chuckasio --dac_3 --adc3 --in8 --out8 test.ckHere, 3 is the audio device number. See http://electro-music.com/forum/topic-69370.htmlhttp://electro-music.com/forum/topic-69370.htmlHope this helps,Doug________________________________From: chuck-users-bounces@lists.cs.princeton.edu [chuck-users-bounces@lists.cs.princeton.edu] on behalf of Scott Smallwood [ssmallwo@ualberta.ca]Sent: 18 February 2019 17:45To: ChucK Users Mailing ListSubject: [chuck-users] Routing stereo sound file to dac channelsDear chuckians?This is bizarre? I was sure I have done this in the past, but it isn?t working and now I?m a bit flummoxed?. Any ideas here?PS: I?m trying to route channels 0 and 1 of a stereo .wav file to dac channels 2 and 3. Should be simple. So why doesn?t this work??I realize that I could just spit it into mono files? but why? I thought SndBuf supported up to 8 channels.?SndBuf sb;//read in stereo sound file"snd/squeakies/bell_4.wav" => sb.read;//works - and routes channel 0 of sb to dac.chan(3)sb.chan(0) => dac.chan(2);//doesn't work - claims NullPointerExceptionsb.chan(1) => dac.chan(3);1::minute => now;?ss[ - ] Scott Smallwood<http://www.scott-smallwood.com> - Associate Professor - University of Alberta [ - ]--TAKE CARE: this message originates from an email 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--Please click here to view our e-mail disclaimer http://www.anglia.ac.uk/email-disclaimer-------------- next part --------------An HTML attachment was scrubbed...URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20190218/fa8dc0b7/attachment.html>------------------------------_______________________________________________chuck-users mailing listchuck-users@lists.cs.princeton.eduhttps://lists.cs.princeton.edu/mailman/listinfo/chuck-usersEnd of chuck-users Digest, Vol 162, Issue 2*******************************************
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users