Hi all - totally forgot about SndBuf2! It might be a good idea to add this to the unit generator list on the website??
Thanks everyone! —ss [ - ] Scott Smallwood - Associate Professor - University of Alberta [ - ] > On Feb 18, 2019, at 1:27 PM, Perry Cook <p...@cs.princeton.edu> wrote: > > 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 iPhone > >> On Feb 18, 2019, at 11:39 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. Routing stereo sound file to dac channels (Scott Smallwood) >> 2. Re: Routing stereo sound file to dac channels (Nunn, Douglas) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 18 Feb 2019 10:45:24 -0700 >> From: Scott Smallwood <ssmal...@ualberta.ca> >> To: ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu> >> Subject: [chuck-users] Routing stereo sound file to dac channels >> Message-ID: <b1298b53-7399-418c-8b1a-0b3c973fc...@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 NullPointerException >> sb.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: 2 >> Date: Mon, 18 Feb 2019 19:39:09 +0000 >> From: "Nunn, Douglas" <douglas.n...@anglia.ac.uk> >> To: ChucK Users Mailing List <chuck-users@lists.cs.princeton.edu> >> Subject: Re: [chuck-users] Routing stereo sound file to dac channels >> Message-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.ck >> >> Here, 3 is the audio device number. See >> http://electro-music.com/forum/topic-69370.htmlhttp://electro-music.com/forum/topic-69370.html >> >> Hope this helps, >> >> Doug >> >> >> ________________________________ >> From: chuck-users-boun...@lists.cs.princeton.edu >> [chuck-users-boun...@lists.cs.princeton.edu] on behalf of Scott Smallwood >> [ssmal...@ualberta.ca] >> Sent: 18 February 2019 17:45 >> To: ChucK Users Mailing List >> Subject: [chuck-users] Routing stereo sound file to dac channels >> >> 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 NullPointerException >> sb.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 list >> chuck-users@lists.cs.princeton.edu >> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users >> >> >> End 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
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users