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-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. 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
To: ChucK Users Mailing List Subject: [chuck-users] Routing stereo sound file to dac channels Message-ID: 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 [ - ]