<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><div class="">Dear chuckians…</div><div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div><div class="">PS: &nbsp;I’m trying to route channels 0 and 1 of a stereo .wav file to dac channels 2 and 3. &nbsp;Should be simple. &nbsp;So why doesn’t this work??</div><div class=""><br class=""></div><div class="">I realize that I could just spit it into mono files… but why? &nbsp;I thought SndBuf supported up to 8 channels.</div><div class=""><br class=""></div><div class="">—</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(180, 54, 240); min-height: 17px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(180, 54, 240);">SndBuf<span class="" style="color: rgb(0, 0, 0);">&nbsp;sb;</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; min-height: 17px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; min-height: 17px;"><span class="" style="caret-color: rgb(114, 158, 18); color: rgb(114, 158, 18);">//read in stereo sound file</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(81, 81, 81);">"snd/squeakies/bell_4.wav"<span class="" style="color: rgb(114, 158, 18);">&nbsp;</span><span class="" style="color: rgb(0, 0, 0);">=&gt;</span><span class="" style="color: rgb(114, 158, 18);">&nbsp;</span><span class="" style="color: rgb(0, 0, 0);">sb.read;</span></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; min-height: 17px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(114, 158, 18);">//works - and routes channel 0 of sb to dac.chan(3)</div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco;">sb.chan(<span class="" style="color: rgb(222, 146, 16);">0</span>)<span class="" style="color: rgb(114, 158, 18);">&nbsp;</span>=&gt;<span class="" style="color: rgb(114, 158, 18);">&nbsp;</span><span class="" style="color: rgb(4, 51, 255);">dac</span>.chan(<span class="" style="color: rgb(222, 146, 16);">2</span>);</div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; min-height: 17px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(114, 158, 18);">//doesn't work - claims NullPointerException</div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco;">sb.chan(<span class="" style="color: rgb(222, 146, 16);">1</span>)<span class="" style="color: rgb(114, 158, 18);">&nbsp;</span>=&gt;<span class="" style="color: rgb(114, 158, 18);">&nbsp;</span><span class="" style="color: rgb(4, 51, 255);">dac</span>.chan(<span class="" style="color: rgb(222, 146, 16);">3</span>);</div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; min-height: 17px;"><br class=""></div><div class="" style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(4, 51, 255);"><span class="" style="color: rgb(222, 146, 16);">1</span><span class="" style="color: rgb(0, 0, 0);">::</span>minute<span class="" style="color: rgb(0, 0, 0);">&nbsp;=&gt;&nbsp;</span>now<span class="" style="color: rgb(0, 0, 0);">;</span></div></div></div><br class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="" style="font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="" style="font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; text-align: -webkit-auto; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class="" style="font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; text-align: -webkit-auto; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">—ss</div><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br class=""></div><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">[ - ] &nbsp;<a href="http://www.scott-smallwood.com" class="">Scott Smallwood</a>&nbsp;- Associate Professor - University of Alberta &nbsp;[ - ]</div></span></div></span></div></div></div></div></div></div></div></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div></span></div></span></div></div></div></div></div></div></div></body></html>