# Multichannel output to Unity Audio Sources

**URL:** <https://forum.cabbageaudio.com/t/multichannel-output-to-unity-audio-sources/3227>\
**Category:** Csound for Games\
**Created:** [29 April 2022 23:13 UTC](https://forum.cabbageaudio.com/t/multichannel-output-to-unity-audio-sources/3227 "2022-04-29T23:13:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathanj](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@Nathanj](https://forum.cabbageaudio.com/u/Nathanj)\
**Post date:** [29 April 2022 23:13 UTC](https://forum.cabbageaudio.com/t/multichannel-output-to-unity-audio-sources/3227/1 "2022-04-29T23:13:09Z")

</div>

Hello,

Wondering if it is possible to route multichannel output from Csound to Unity? For example, with the Euclidean sequecer [here](https://forum-next.cabbageaudio.com/t/euclidean-rhythms/2424/7), I would like to try to send each voice to a unique audio source.

Been a good while since I used Csound so some pointers would be most appreciated.

Thanks,  
Nathan

---

<div class="post-metadata">

**Author:** ![giovannibedetti](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/giovannibedetti/32/4146_2.png) [@giovannibedetti](https://forum.cabbageaudio.com/u/giovannibedetti)\
**Post date:** [30 April 2022 00:50 UTC](https://forum.cabbageaudio.com/t/multichannel-output-to-unity-audio-sources/3227/2 "2022-04-30T00:50:19Z")

</div>

Hi @Nathanj, have a look at the partikkel-2 scene under Granular Synthesis Samples, you will find lots of useful code there.  
You can do what you need writing something like this in Csound:

`chnset achannel1, "channel1"`

And then on Unity create a GameObject with the CsoundUnityChild component.  
There you need to drag the CsoundUnity reference that has the csd with the above code.  
You will be able to select the desired channel from the inspector.

---

<div class="post-metadata">

**Author:** ![Nathanj](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@Nathanj](https://forum.cabbageaudio.com/u/Nathanj)\
**Post date:** [30 April 2022 05:43 UTC](https://forum.cabbageaudio.com/t/multichannel-output-to-unity-audio-sources/3227/3 "2022-04-30T05:43:44Z")

</div>

Wow, this is absoluetly perfect!

Thank you @giovannibedetti

I was hoping to try granular synthesis next but will more than happily start there 😉
