< Back to IRCAM Forum

Ambisonic Synthesis + Decoding in spat5.spat

Hello,

I’d like to know whether it’s possible to do ambisonic decoding in spat.spat object without a separate hoa.decoder, or whether this approach is has any benefits over using a separate decoder.

In the patch copied below I’ve followed the routine showed in the HOA tab of the spat.spat help file, which uses a separate decoder object and gives spat.spat the message: ‘/decoding/type passthrough’. This is for a 25.2 system for a live electronics + instruments context.

Is it possible not to ‘passthrough’? I couldn’t easily find what the alternative values are for this parameter in the helpfiles or reference PDF, so would be grateful for any pointers.

Also I’d be interested to know if anyone has thoughts on my headphone monitoring solution using virtualspeakers~ - is there any other method for decoding from HOA to binaural?

Thanks
Nick


----------begin_max5_patcher----------
4614.3oc6cs0iaibr9Y6eEDB4syLxc0W3k.DfMAKPxCImb.1GNOXXXvQhiFt
lRTfhZV6rX8u8zWHoHoHoJMpzLylLigkn5ljU2UW0W+02+02+tY2k+0jcy79
idez6cu6We+6dmMHS.uq52ua153utHKdm81lkk9Xx7xjuVN6FWrOFWrIdcxv
QtMtPGWYRwmS1DeWl8tfp3L2W9F6y82y2ub21j3ujTrq9Q2rec5lrjxcseFc
f46KqCk2HkxEOjtY0mKRVT5xLfHbdffApP6mQbo+MdJHbN6Fuf.ymf9SuOU8
FRWZSG428y2FTm.bBp7aaSbuxYytQ++lGwlMMOzeKId41Gx2jzjz2E+XxxOG
WVVjd29xjCWsqRwVoYMJur8I42WGbc3sUb6dHun7XM7GA4mpjWO8790UoW8K
GLoY827lzcmatNywGHtr7MqvK10ZiDaAkKpe68u+vW1O+s2eCRKrMI+htbXV
e0bg2i2NrwAaPiCXBiCtw.vWIMeIr+fyG1ZPNt0f2mnKykdu2eHE79S+IOvq
7gjM5uRx1k3wOCuA3b8Fj9V+.gXJE.W77nAVFu365b8vYX9fYX1TkvLqmtqv
ETp4pIxhrYzkOVuX99MaiW7ku6wCNGrrfSlapLX4QSZwBQiVfsKU6QmYfD9u
9qnzzU+J+90zOMv5mJfIK0CNUoNk4XsQ9p3xjueVtqSTasbfrs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PLZ5m8bJ6ZjSq2
L5e5N38OTHO+CDxmpq5S5ffDsCd28a1IO3GG6fa8YvV8nCm02JHGofjD8dyA
q5ap4K0eYfCI0Kt343CC0gKmPb.ndwokiOnSGNs7TObSIJA14PLEcJ7TGboW
dh6nCnTzoMTGJomWBzQUejCyv2+au+eCoJgcl
-----------end_max5_patcher-----------
1 Like

Hello Nick,

At the moment, the decoder has to be separated from the spat5.spat~ (in other words, “passthrough” is the only decoding type currently available).
So your approach/patcher is totally correct.
Your headphone monitoring solution using virtualspeakers~ is correct too. And at the moment, it’s the only way (in spat) to transcode HOA to binaural.

Best,
T.

Thanks T, that’s reassuring.

On another note, do you have any advice for upmixing using spat?

I’ve been enjoying Blue Ripple’s O3A Plugins, including several upmixers. I’m using them to upmix older live electronic patches for larger speaker arrays.

I guess I can just the stereo pair to a linked source-pair in spat, but I’m specifically interested in ambisonic upmixes, especially how the O3A upmixers have interesting parameters such as as width, upmix, yaw etc.

I’m guessing it’s possible on spat I just need to look closer at HOA possibilities and add the right settings to a pair of sources, representing the stereo feed.

Are there any objects or ready-made methods out there already, or will I need to experiment?

Best
Nick

Nope, there is no built-in Ambisonic upmixing object in Spat.

Best,
T.

Thanks T.

If you or others have time I’d be interested to know people’s thoughts on the patch pasted below.

It attempts a 3rd order hoa decoding on an ad hoc 16.1 loudspeaker array (sub not included in spat but sums all signals and will probably be in the centre, in front of the stage). I know it’s far from an ideal geometry for ambisonics but I’d like to try in any case, and then vbap3d or knn are a back up if there are problems.

I’d be interested in case I’m missing anything basic for a hoa3d loudspeaker setup, as I’d like to compare spat to some other software (Blue Ripple, SPARTA, ICST), albeit on a different and more regular layout than the below. I want to know that I’m configuring spat properly to make a fair comparison. I know there are a lot of settings with the hoa.decoder~ too, which I’ve yet to study (speaking as a non-engineer) to appreciate their practical significance.

Thanks
Nick


----------begin_max5_patcher----------
6656.3oc68rsiiiarOOyWgfQdJmtUqhWkN.AXSP.RdHImCv9v4gAKFn1Vsas
qaICeo2Y1fLe6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xH.aDRLb6sO+8MqsAIzniM5.Gop+zl1XKUSMvZcxspUd1Whvsxu9
sxs9GmW86Nm52Ne5qxXdsJ80ZF2IJ40spsb+6O1U8krLAeYt7VeIk15KrrVe
gUgRy0QxtKk0cTFqKyhY28wtqYdMqWd0GEaUop1bWRWkmZmgJUkgZ6ge8zP2
EWfkOYwU1kT3EvoCdeRokEPxyt2zl49sqorme8j8RmEeQ0QVqm62L6i1aoe1
bYe1c8fGUdmubI0em2a4D9dUoY1l4KQSSWre5hS5dNtbJatexhRn7fwkiKUx
lwkKs7H6HDrQYP1ZL7Tk93gibGUhisF2rprFedHn1T8Np+Te7+7w+ePEvLoL
-----------end_max5_patcher-----------

Hi Nick,

All in all, the patcher looks correct.
Tiny comments :

  • you might want to use the @initwith attribute, rather than loadbang for initialization (e.g. @initiwith “/source/number 4, /room/number 1, /speaker/number 16, /panning/type hoa3d, /decoding/type passthrough, /norm SN3D”). Have a look at spat5.tuto-osc-3.maxpat for further info.
  • you might want to use @mc 1, for the sake of simplicity. Have a look at spat5.tuto-mc.maxpat for further info.
    NB : Using @mc 1 makes the patcher load faster, but doesn’t change the realtime performance.
  • in case you opt for a radius of 5m (/source//radius 5), you might want to adjust the source presence so that it is maximal at 5m (otherwise you would have a ‘small range’ of variation for the source presence). You can for instance use : "/source//radius 5, /source//dist 5, /source//pres 120" so that each source has a maximum sound level at 5m : source presence is maximal (120) at 5m or below; and it decreases if the source distance is > 5m.
  • the speaker setup is not optimal but not too bad either for ‘3D rendering’. In case of VBAP3D, you might want to use a ‘phantom speaker’ at the zenith. See spat5.pan~ help patcher (‘vbap’ tab) for further info.

Best,
T.

Hi T,

Sorry not reply sooner and say thanks so much for the expert tips - all reassuring.

I have a quick question about updating v4 to v5 spat patches which might also shine some light on best practice with spat.

Pasted below is part of a patch from v4 and then remade in v5. It’s simply an eight-channel 2D ambisonic set up. For me the problem is understanding whether defining speakers is meaningful in v5 in the .oper and .spat, because the hoa.decoder is doing all the work.

If I give .oper eight speakers with 7 outputs .spat gives error messages, so what’s the best approach If I want to visualise a different number of speakers in oper to the number of outlets in .spat?

In v4 there is the @numpans attribute which I think can be used to create these differences (please correct me!), although not in this example. Or, for hoa is it necessary to run a .viewer in parallel to oper-spat to visualise things if the oper-spat pair have to be configured for hoa channels?

I think this would be useful not only for 4-5 updates but other new projects too.

Thanks!
Nick


----------begin_max5_patcher----------
1796.3oc6ZszaaaDD9rzuBBdVQYexcYO4FDfboonn4PQgQfAkzZY5PQJvGIN
IH82dm8AodXJIJq0t8PDPjIWtK+lY9lY1YVkuOdT3rhGTUgA+Rv0AiF88wiF
YFROvH28iBWk7v7rjJyzByUeoX18gSrOpV8PsY3p0I0SWnlWrPU9OAWk2rpn
odcScUfzbWZt4FQvU0ecsJ3thDxhfqbKXkp9thEApbU4xuttTUoJ+bZ9xtma
VB7FtKoRABSox8D8b9vuSdavUv6adYQUUwmUkALDpU9xRygI1jaDRtaPCB40
I0oE42z6LLBblp1nxB2f2VjWmmrRYz2esLMIqEEP2meGHL2TplWaMljH4Thj
KHXj8ibR.MRLkOI.GGMMB9HHtGgfAiXSQAebC7f0qEejazzEFjAq+q3gaISU
oeyHSXzTjdzeLdr9qIWNgxmtpIqNc57hbvHUGHC6y9fOrUfGKmhlDvHQ5+fI
D8ezeObUkE5OcpT6247ReUkptFj1pd0Izg0ILhhMpgTZUJ1ITpV6icHsur8E
EF1sfszWgW02p0pjOoJexJaLlusth7qthwg91gcCAqSCsUNnhRXn.Jj4HckJ
uBB8CHgGKbup9qY1X8EpaSf3fvS5mSYQSi0AzXhTvhPTh.FTfOgQK9PFspzk
45rL95p9IgntrkUIeVs3FXPPwtIottLcVSsc6gQcjg1.TBoAqUk2nxSlYMRl
LOVl7b4yUpppjkpGQnutpnobt50fwZlNq9jfWWVTrp8dLbuy8tcHvZOKIeY3
IyyS5i3IGmeIXJGghse3.5DDWmNmxvSi29Ci5wPDBw6gH5ugXC2NxrMQIB8f
.sBdKUGHWO6IFb7XimMiBI5TYTjOuA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
1Qc.FZmkIowDrwJH61bSJgc73tk4E0YdwpUvJ2nOtA1SexTPEFajNyuj4lu1
9blOdBiKMgF9P5w8yl8yzX9IM1F9I1atY2a1HTUtwOyCuJxAdUOFrS+V+TUV
JTn7eoqhdfQ16ED3uXR6AMehTLG2iVe5yFQ8lzbcyEpV+Gazp6qij8IlFws4
bh4XSw1P44bTztKJY9bPE2YgBAWXqiQ.o3X1JZHLob2U9rUYi038lrF0wKro
GQmh0AwZANpqEiXWbsuY22UpT4msDZHNNU+wrKRjd+.+Kb+oZwYKZhtzdXFG
RMYbwf8sz+FA9V99aUVVwWNaQTR3Xg0yDKMNlHdLmwOpmIQOIDR5KEv7+Pk+
aiskHpfh616VBLGK9jA1QsrZj4+zh1qr8e+xDX6rbjg27q9GC+3nuOcLTw3c
PWdmeHBjJAY16lCk1wMlP716ce91I6IHY9MJ0RX0ZWKHleJyw+X7+Bzl8BkK
-----------end_max5_patcher-----------

Hi Nick,

Sorry for the late reply.
No, you dont need to define the speakers in .oper and .spat~ as they only operate as an Ambisonic encoder. Only the decoder needs to know the speaker setup.

You could still add speakers in spat5.oper, just for the sake of visualization; but they are not used by spat5.spat~ (you can see that there is no speaker data in the spat5.spat~ status window).

In Spat v4, setting up encoder/decoder was very awkward, and I hope it’s a little better now in Spat v5.

Here is your modified patch :


----------begin_max5_patcher----------
1355.3oc6Ys0aaaCE9Y6eEB5YWERQRIp9Taw.5Kq.CaOLLjFXPawjnTYQCJo
jzUz8aeGRJIeYVNxNJEY.U.wfh2Nmuy24Box2lNweg5QYou2a8tzaxjuMcxD
aWlNlz79D+UhGWlKJsSyuP9fZwc9ybCUIerx1ctRjtPTbS6.Yo1tgo9FbaeE
0qxJxkU1MB2z4ZQ0xayJtYtVtrxoHbT.ZlGgEvl4wnl1g3.j2Ua1FUc096iq
qputV51Deq13ckYzuOcp4mYOOHp8tUIBRkKUox2TBxBz5xCf23ChWT+3kxiC
h4QzjDj6glLyCGawON7rM.iL3KWKEeQpOFxw3SE5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v16M18C5TwAtObb2hECOMVxOyhM7rXiha1c1pcR
8F+rQXqB6Yq9uB6o20uTlmAGT9OMmhdfQ164KOdwjtuxzSjhw7wkrJy7rBy0
GjsdItvple1+zWmUPrX4R.H63JFGyhcGIIFRjQcGNIjx4GMkVBIh4Rjkvv1S
vCm4mghFei2GxqkG+fMG.TDrIP1nVQcWwHoI1drUvOpkxhSVCszJiXdrUQhL
0CFek62komrpE2k5CSYP5IqCHT2JLY70u+Rlmqd3jN3ZX.hkfP7i4TyCY3Xm
OMlacog0vniZ8V22t8UcrcTK8EYdbwCMWz9XGWAQhI3t55bvcfl7RX4BGNqS
4Okz2mNFpZ7Q3pbmdHBjJAYqeyfi1wrVV710uOc6j6KHY+GTXzvx0M2yv9+w
X52m9unNmNUE
-----------end_max5_patcher-----------

Hi T and Nick,

I’m also interested in the upmixing. I have recordings with the Sennheiser Ambeo mic, conversion from A-format to B 1st order 3D. Looking for upmixing first to 4-5th order and then decoding in maybe 5th order 2D. Would it be a good solution to do the upmixing in Reaper SPARTA-plugins and then decode in Max?

Is it possible to listen the 1st order 3D with binaural listening? I was thinking that maybe the binaural listening would produce a fuller 3D image than the virtual speaker listening. My first attempt to convert from A to B and then listen in binaural, here attached. Used bits and pieces from the tutorials. I’m not completely sure if I managed to get everything right, but it does sound quite nice already.

Thank you!

Best wishes,
Maija


----------begin_max5_patcher----------
5743.3oc68r1iaajje19WQCgC3RVHqg8C9JGNbwNFdyhKN6h3MHOrCFPI1Rh
wTj5Ho7LyFrF2+g6e38K45WThThjpoTSoIW7XXQotIYWcUUWc0UWU0+1Sexn
oo2SyGA9BvaAO4I+1SexSDEwK3Ipe+jQqBteVbPt31FMKc0JZRwnwx5Jn2WH
JeZb5r2mG8OnfUz77fETPXJMO4es.bWZ16Ku83nD5rzMIhmAoJbcPwrkQIKt
MiNqPBK993I1iADW7Dqw.nsE+Bl8CvundnjMqhRhoEBnBtqvzMEkkZoJMJT.
goS+0mAsrGwK7e9zmx+Xrlc5D5crm9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.GCcm3ZuiMW96yE97LfLBKk3Um5xHbN6Qg02esSSFgiD6
M.xHfNZvEAMghSPGcl+0DiLf5LFDZBc12ScgNZoydztF5rCQlXoUZnxNDYhU
VoCQBYhEV0C89NOtAacjSZDNb+KUKg0Q1pIXvI5X7fxktd9sDRmVBYhVBpSK
AMQKYoSKc1SmoiBXXaSzRNZvQ35a.NhRKEc7VBYhVBpSKAMQKYoSKctzIGMs
aErM0aHNdxiuawRa8829iyEvzYPApKEuvLnvc+P2zwchOZ+.rFMAePDPc3Md
tcHclfwwDh8c70wFgFXnmiuNlHz.i7b70wBgFXfmiu9bcmUC4pCMxwDxGc0g
H4XB4it5PkbLg7QWcHSNlP9nVqN0DpP4o0NHbnR.x8XZuf3i2H6E7d6E3dGF
zdsGvd6GrdBWuTF3R6suV61VuMgQouQD1Y29ZZh5jPsL33piJltXdTb7VWlr
59rUtOiij0tM9.q5dkHeBaE+b2qDCwtHGw2Xew1tpqJKeFX4CQrI9VH9sRbP
tDaw27PXa73ZaZu7wP6ZKKnurEr78rHxuwJBtmmcFjrPElcU1U9QqyRWyyBP
JGbbB1e68uoHcQVPXjxayquYhiUbR7Xje+3EazJFBMp7Ypx4skX7R0wkND9h
z3PveKkuCtQcQRpt4uuUr8uk7bFBTdM4a5a62vtG+V09GC38q81UeoC.ViOo
cZm0DOay2COALs0uO6okgomQnl08Tfx.r8sUlYQGIFaGM0r..rqCwUfOvdDL
TfiH6MH9DG6qMs3jjXLDBFdcv8t5vr9I7tYv6SCxilAfmnbgOQELCU3WmNUe
Jfu1Bs9D4wLjm2mGGwT67G35j1EcpROR5bzU+vPS0I8dtWDug18LcAylwZfZ
3XLjSL4XVms5b5qnulF.+yYTZRugPKNHYi4+w+FzwioRrQAtMqlRy9yLMW5M
rwQTVBNTat0XD3QXUNz9CfxEL0RJF4o+ym9+AgMik0A
-----------end_max5_patcher-----------

Hello Maija,

Would it be a good solution to do the upmixing in Reaper SPARTA-plugins and then decode in Max?

Yes, that should work.
It should also be possible to load the Sparta plugins in Max, so you can do all the processing in the same environment.

Is it possible to listen the 1st order 3D with binaural listening? I was thinking that maybe the binaural listening would produce a fuller 3D image than the virtual speaker listening.

As indicated in the help patcher, spat5.hoa.binaural~ is an unfinished prototype. I strongly recommend not to use it at the moment.
If you want to binaurally decode a HOA scene with Spat, you would first need to decode it for a layout of loudspeakers (e.g. with spat5.hoa.decoder~ ), then virtualize these loudspeakers (e.g. with spat5.virtualspeakers~ ).

My first attempt to convert from A to B and then listen in binaural, here attached.

All in all, your patch looks correct; but I think you can remove the spat5.hoa.rotate~ @order 1 @dimension 3D part. The encoded signals coming out of spat5.hoa.aformat~ follow the Spat convention (X pointing to the right and Y pointing forward); so I believe the rotation is unnecessary here.

Best,
T.