Re: [chuck-users] Routing stereo sound file to dac channels
Hi,
I think you should use SndBuf2 instead of SndBuf.
Cheers,
Mario
Sent from my WIKO U PULSE LITEOn 18 Feb 2019 19:39, "Nunn, Douglas"
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/foru...
Hope 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: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 - 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
participants (1)
-
Mario Buoninfante