< Back to IRCAM Forum

Creating a simple Ambisonic decoder drag & drop interface

Hello Spat Community,

I am trying to get my head around the HOA conventions.

My goal is to create a simple tool to drag&drop any type of ambisonic file, and have spat output the proper ambisonic signal directly to the speakers. I am working on an irregular loudspeaker setup. Is the method as used in the screenshot the right way to do this, or am I missing something? I plan on creating a dynamically changeable order with max scripting to a [thispatcher] object.

1 Like

Hi marijn,

Your screenshot looks correct.
You can have a look at spat5.tuto-mc-2 for a scripting example.
Also you might want to use @initwith to initialize certain messages (e.g. /yaw 90). Have a look at spat5.tuto-osc-3 for details about @initwith attribute.

Finally, there is no way to know how a file is sorted, but asking the creator of the file. Best case scenario, this could be written in the filename or in the metadata. ACN is increasingly popular in recently created files though.

Best,
T.

1 Like

Thank you very much for your reply, good to know that my understanding of ambisonic conventions is correct. I will streamline my patch some more using [initwidth. I had already read the tutorials.