Displaying an ambisonically panned sound source on a jit.gl sphere

May 19, 2010 at 11:59pm

Displaying an ambisonically panned sound source on a jit.gl sphere

Hello everyone,

I’m attempting to write a patch which displays a 3D plot of the position of an ambisonically panned sound source around a central receiver point. Apologies in advance but my knowledge of jit.gl objects is basic at best.

I am trying to write a patch which displays a small solid sphere (representing the sound source) on a larger opaque sphere (representing the unit sphere). I need the smaller sphere to move around with the paramaters azimuth and elevation (the radius would be fixed).

So far I’ve managed to display both of the spheres but I cant seem to control them in the way I would like. Can anyone give me a pointer to an object they think could help? I’m assuming I need some sort of cartesian to spherical coordinate converter and I’ll have to be careful about which coordinate system I use.

Thanks in advance for any help

Laird0

#50463
May 20, 2010 at 5:59am

Have you tried the cosm library?
http://www.allosphere.ucsb.edu/cosm/
The object for Cartesian to Polar conversion are: cartopol and poltocar

#181050
May 20, 2010 at 10:51am

I haven’t fully explored the cosm library yet, but be aware that cartopol and poltocar objects already exist in Max5 so there is no need for the cosm library if that is all you want it for.

If you want less of a challenge than adapting those built-in functions to your purposes, you might also try the rather sexy jcom.dataspace – part of the Jamoma 0.5 distribution which is effectively a “universal” converter. The nice thing about that object is that it will convert data triplets (x, y, z -> a, e, d) Nice…

#181051
May 21, 2010 at 1:14pm

Fantastic,

Thanks for those links guys, I’ll check them out ASAP =)

#181052
Nov 8, 2012 at 7:14pm

late to this party but damn! that jcom.dataspace is one handy external…

#181053

You must be logged in to reply to this topic.