<div dir="ltr">Hi Jack,<div><br></div><div>Thanks for the information about Chunity inner workings, I was indeed calling RunFile on a ChuckSubInstance, so that&#39;s is why the output was mono only. </div><div><br></div><div>I actually did not even considered or thought possible sending directly to ChuckMainInstance, as I learned the steps through the Chunity tutorial. I did a quick test with RunFile calling a ChuckMainInstance with GetComponent and it did work perfectly in stereo this time. That&#39;s is great as the RunFile method seems preferable to a Machine.add inside a RunCode.</div><div><br></div><div>The reason I wanted to use panning on a ChuckSubInstance is that I was calling various ChucK files that were part of a music composition, and one of these was a synth part that had a wider panning randomization. So my workaround was calling a Machine.add inside a RunCode.</div><div><br></div><div>Best,</div><div><br></div><div>Luis</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 26, 2018 at 3:17 PM Jack Atherton &lt;<a href="mailto:lja@ccrma.stanford.edu">lja@ccrma.stanford.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Luis,<div><br></div><div>Are you sure the issue is between RunFile and RunCode? I would expect those two to behave the same way (but it&#39;s possible there is indeed a bug somewhere). That said, if you&#39;re calling one on a ChuckMainInstance vs a ChuckSubInstance, they would behave differently. The way that ChuckSubInstances are implemented, they have a mono Gain that secretly acts as a stand-in for their dac, so that their audio can be spatialized differently from other ChuckSubInstances. Running a ChucK script on a ChuckMainInstance should work as normally. Machine.add() would bypass the dac-replacement and also run normally.</div><div><br></div><div>If you want to use panning rather than Unity&#39;s spatialization, it might make sense for those scripts to be going to the ChuckMainInstance anyway. Do you have a use case where you want to use ChucK panning on a ChuckSubInstance?</div><div><br></div><div>Best,</div><div>Jack</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 26, 2018 at 6:12 AM Luis Bergmann &lt;<a href="mailto:luisbergmann@gmail.com" target="_blank">luisbergmann@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello all,<br><br>I&#39;ve been making a demo using Chunity to create music and sound for the Unity demo Space Shooter.<br><br>I think Chunity is great and open up lots of possibilities, not only regarding procedural synthesis but also implementing features commonly found in game audio middlewares like Fmod and Wwise.<br><br>One particularly odd issue that I&#39;ve found is that when using RunFile the audio plays in mono only. That doesn&#39;t happen when using RunCode() or with Machine.add(), as the stereo image using Pan2 or SndBuf2 is not affected using these methods.<br><br>Does anyone notice that, or maybe I am missing something?<br><br>Best regards,<br><br>Luis<br><br>-- <br>Luis Bergmann | +55 11 94284 0574<br>Twitter: @_luisbergmann<br><br></div>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Luis Bergmann | +55 11 94284 0574</div></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div>