< Back to IRCAM Forum

Spat5~ ACN order incorrect?

Hi,

I’ve recently been investigation Spat5` ambisonics. It seems that channels encoded by spat5. hoa.encoder are not in true ACN order. See attached basic patch.

In the older Furse-Malham coordinate and naming system for first order ambisonics X is front/rear, Y left/right, Z up/down, with channel order W, X, Y, Z.

In the ACN system the order is W, Y, Z, X in the old alphabetical nomenclature.

Confusingly Spat` has adopted a curious coordinate system: x = left/right, y = front/rear, z = up/down. Varying the x coordinate value with y and z at zero changes the output of the fourth channel of the encoder. Changing the y coordinate value with x and z at zero changes the output of the first channel of the encoder. X and Y have swapped positions, with a channel order W, X, Z, Y.

I haven’t analysed the higher orders, though these seem OK.

Spat~ is apparently self-consistent throughout, and all is fine when using only Spat~ Max objects. Things go wrong and are very confusing when interfacing with other implementations which use the correct ACN order.

For example, I have been building a Spat5~ 3rd order loudspeaker decoder to work with ProTools, where nearly all the available plug-ins are for binaural decoders. Richard Furse’s 03ACore Panner uses the correct order (apparently with Gerzon’s original coordinate conventions). The decoded directions are wrong in a confusing way. Simply swapping X and Y channels in the decoder doesn’t seem to fix this, but a rotation of -90 degrees does.

Obviously it would not be a trivial exercise to resolve this discrepancy, and doing so could cause all sorts of problems for existing Spat~ users.

Ciao,

Dave Hunt3OrderEncode.maxpat (13.3 KB)

Hi Dave,

I believe the ACN order used in spat5 is correct.
Indeed, Spat has adopted a coordinate system where y-axis is “front”, while Furse-Malham are using x-axis as “front”. One alternative is not better than the other.
“Converting” one to the other is a matter of a straightforward 90° rotation around z-axis.
You could have a look at the spat5.tuto-bformat or spat5.tuto-hoa-* patchers for further details.

Hope this helps,
T.

Hi T,

Yes, I have extensively read the documentation and opened the help files.

I agree that there is nothing inherently better about one coordinate system over another, except one that uses traditional and well understood conventions is preferable.

The basic directions of X, Y, and Z as defined by Michael Gerzon are the ones in all the literature, are in common usage, and persist in ACN and Ambix. Although his left and right, and angular rotation polarities do not match that used in most visual computer programs, and are counter-intuitive, it is quite acceptable to alter that. Many others seem to agree, and it appears standard.

It is another thing to rename the axes and carry that through in a way where X and Y signals are in the wrong order.

You are right that rotating an incoming correct ACN 3rd order signal left by 90 degrees in my Spat5~ hoa decoder does fix the problem. I’ve tried changing the gains of the orders, and everything seems to be in the same and right place. So everything seems consistent, though I still think it is wrong.

However, this implies that anything I create using Spat~ encoding needs to be rotated 90 degrees to the right for correct playback of an ACN stream. To monitor correctly I would need to rotate it back before my Spat~ decoder.

Ciao,

Dave

Hi,

I agree with your comments.
However, we also have to deal with the repertoire, thousands of pieces created with Spat over the last 25+ years, with the convention that y-axis is “front” (regardless if they use Ambisonics or not).
Therefore, it is unlikely that we change our X-Y convention in the near future.
I understand that this 90° shift wrt to other HOA tools is error prone, but it’s an error that is easy to catch and to fix. I hope you can live with that.

Thanks again for your insights.
Best,
T.

Hi T,

Thanks for responding.

I totally understand the amount of work made with Spat~ over the decades. From my investigations it is clear that the effects are not just confined to X and Y components, but to the horizontal components at all orders.

So, I will have to build in a 90 degree rotation, or two, in all my ambisonic Spat~ patches if I want to produce ACN 3rd order (or higher) B-format audio files.

I have been trying the Dear Reality plug-ins in ProTools. They produce the same effect as other ambisonic panners in this regard, requiring the same rotation in a Spat~ decoder.

I have also been working on early reflections and subsequent reverberation by converting to A-format, working in that, and then converting back to B-format or AEP. This involved a lot of conversion between coordinate systems and much confusion and head scratching. In light of our discussions I’ll have to look at that again, though what I’ve done seems to work.

Ciao,

Dave

Hi T,

I’m still trying to get this sorted.

It seems that if I send xyz messages to spat5.hoa.encoder~ with x = rear/front, y = left/right, and z = down/up (the Furse/Malham convention apart from the inversion of y), then the encoded signal is in correct ACN order. This is equivalent to a rotation of 90 degrees clockwise.

The same seems to be true with spat5.hoa.decoder~.

So, the problem seems to be that the coordinate system used in the xyz message does not match the Spat~ coordinate system. Hence the confusion.

Ciao,

Dave

Does the attached patcher help clarifying things ?


----------begin_max5_patcher----------
17034.3oc68l2jihcsun+sOeJxn9q26gaZlGtQbh3HI.MABMABj8Ibf.DfDh
4AItw87Y+tW6rptq1N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eNe2OsXn7LU+IZ5w4oAOsNGR4dxWZI4yKyh+DtPK9DO2az
ihAm9Wa7+z07m9XAs7D7v+YuFi9jT0eEyvu9BDEoD+KVHIuWyvWKk9a5Lk58
Xl9Cz+8NG+4o2qQ7+mDMdYoYVQANQ77lUhikFSK39qjH+GTP9USy+GR7+iR4
uPUr8m9L+Se+4U8tK9ZXV+2KUuMJjub5z+Vd4sQd4mkKjeyDKtVmlf.7b.PC
8kVm9r4Jtx19E+yazyxy0s23z1vurNVOeez.7Kn9rzvxLPyE9IzNxebk+s9A
bZUXX1e2OgTviDOK7E7IZAIDXr2zGNbQLOEYN8u6mMfPQg4c4kYn4wzQ5Om2
8u+GvmgpiqIS3Irt3i55wkt4+w+m+i+u.4EWXl
-----------end_max5_patcher-----------

Hi T,

Thank you for the patch, though I seem to have worked it out.

My original intention was to try and match the ACN (Y, Z, X etc.) convention throughout my patches to avoid confusion. This proved impossible, as x, y, z coordinate order seems universal.

Spat~'s coordinate convention matches that of the ICST objects. Both seem to be internally consistent. However, Spat~'s encoded channels seem to be 90 degrees different to ICST’s. Encoding with xyz messages, where x= rear/front, y= left/right and z= down/up, in Spat~ makes the two results identical. This is equivalent to a 90 degree clockwise rotation.

In ACN the names of the encoded channels do not use the Furse/Malham alphabetical convention, but the literature and common usage consistently describe the application of the alphabetical names to the ACN component channels.

When decoding in Spat~ using the same coordinate order it works, but the Y coordinate (or signal) needs to be inverted

Hi T,

Apologies for taking so long to get back to you.

I’ve been trying to work out how to make Spat~ work to encode and decode 3rd order ambisonics in line with Pro~Tools plug-ins from Blue Ripple, Dear Reality and Noise Makers.

It seems that they use an ACN channel order in line with the Wikipedia “Ambisonic data exchange formats” page.

I can’t find any relevant papers to back this component order up, and find the mathematical Y terms hard to compare, as they are formatted differently in different places.

Here’s Max patch comparing Spat~ with ICST encoding. This seems to be the only current alternative other than deriving the components from maths and driving a matrix. There is a difference between the coordinate navigation system and the meaning of the X,Y,Z etc ambisonic channels, which are defined differently.

Ciao,

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zIJEhUK05oVGfUK05gw6i
UK0pOF3gUK0pS7flDQqtlDGqVp0iplgUK05AvSwpkZ0sBHX0Rs6rDnMxsU8Q
3ojn0oEQSKQqFmQPSMQq1lQPSOQ69XEZJJZeyaPQSgam1RDT7BoN4Fn.dvnN
.ihFO9l3I4kOspQN45n+iN5kB58XclcIaQzTcxj3aRpddt5JQSFbUxz3ASmM
QGscevSmqeUAK0jzYIkK6WBOYSlO8iiVMnlVDm4yFlj85oQSmke1yiSmoikL
IptHZ1noKSJN+xKRFMZdrVUOTZqhz3xnVdQ8+oV3dQKhMtfhv7REvzpvkiUD
4zhd0KaQpuCo5KwEUwFF2i5yEpOEPYBlJXnW4qQWzVtjPcK3FF3x0eRdIxRg
DVsvIi5WqBIsdjhM+4mMM6xIQCSJxGMqEuv8JkjlHuqhrqnIkzzqkDzjpuSc
IukYFWm7gMkILuCBSSY9dbehhjTD75JhCeE5x8jbtBCGYl.lz5uWSbkSl7sY
iF57xrh3kO41n70iS+2oRuCUiuQpq7b9ytqse8.2rP2Umo+t8CDKkNFp5Muq
L2S3TPVNAeDdOnzt6mHspBdcm4lPcxE4GgiJ.dLPVD4cK17Yr3fQevuKBqG4
G3nPVRuKL29UwWNaTToID2+21+47y69nuviC9rLy92yGkHMU8eUXG6swmZIv
9QounSlPe6nYw2tF6nAEU.yknwLRAyrfx5M2N0vR9K1cv+1j33z6bOTkyfDr
h+U7IhWfzLZT6bpbp0eSNE5ctuUPnbURnhPJQnnij5Rn28NndQVprlQQOLeb
4zCpjqwi+eO9+GHMPjQN
-----------end_max5_patcher-----------
[Ambisonic data exchange formats - Wikipedia.pdf|attachment](upload://voUUnhxxO0jETinQZ6GpKJvlpYZ.pdf) (649.7 KB)

Hi Dave,

Have you had a look at spat5.tuto-hoa-2.maxpat ?
This patcher compares Spat encoding with ICST and the AmbiX plugins (from matthiaskronlachner.com)
The patcher shows that the encoded HOA streams are similar with the 3 software tools. This holds true for ACN SN3D, ACN N3D, and FuMa.
The only pitfall is that Spat requires an extra 90° rotation around the z-axis, as I explained before.
I don’t have access to the Blue Ripple, Dear Reality and Noise Makers plugins, but I presume the results would be similar. (you could insert these plugins spat5.tuto-hoa-2.maxpat to make comparisons)

The 90° rotation (easily achieved with spat5.hoa.rotate~) is the only step required to ensure compatibility with other tools; no need to reverse engineer the mathematical formula.

If you still face issues/difficulties, please provide a more detailed description of your workflow (which tool encodes / which tool decodes / do they only exchange HOA streams, or do you transmit automation data – like xyz or aed data ? etc.). Feel free to send patcher / screenshots / video / audio files if necessary.

Hope this helps,
T.

Hi T,

Yes, the 90 deg rotation does work but I would need several instances of it due to my working with a modular approach.

This involves mono/stereo encoders, with early reflections from a cuboidal “room” feeding a global reverberation engine. Each has its own control panel. These are used as bpatchers to display a number of sources simultaneously, along with Midi or OSC external control. I am also trying to incorporate a convincing distance model for sounds inside and outside the nominally unity distance speaker array.

Similarly, the decoding is controlled by bpatchers, one for each speaker, though there is only one decoder object.

There is also a graphic display of the “room”, sources and loudspeakers built with Jitter. Another different coordinate system.

I’m using 16 inputs and outputs as something reasonable for 3rd order ambisonics in terms of user hardware, and for proof of concept. As it is modular it would then be expandable fairly simply.

This is all based on a long standing 1st order ambisonic version, which works well. The above mentioned distance model worked well there, especially as the XYZ components all go to zero as xyz coordinates go to zero. W was increased inside the unit sphere according to Gerzon’s equation. Outside the unit sphere the directional coding was maintained, and the amplitude diminished according to the inverse square law (1/r), the amount being scalable. The reverb send varies as 1/sqrt r, as suggested by Chowning.

With 3rd order I started from the basic encoding equations, though this led to rather large processing load when dealing with the number of inputs and outputs. This led to exploring the ICST and Spat~ objects. I had found the latter to be much more efficient when attempting an amplitude/delay panning project (Delta Stereophony, roughly equivalent to simplified WFS). Additionally appealing is being able to use simpler and shorter /sources lists, without having to specify source number and send as separate messages.

Neither of these really seem to deal adequately with distance, and the directional components do not go to zero at centre zero, meaning that the audible result was not central. My solution is to fade out first and higher order components as zero is approached, and increase W to compensate for the loss in volume level.

Additionally, when attempting to produce an early reflection send signal from a cuboidal room, signals cancel along the xyz axes as they are equal and opposite polarity. In the centre at zero they default to a direction along one axis or cancel completely. A solution seemed to lie in deriving A-format signals, as suggested in several papers (e.g.Wiggins), working with those and encoding to 2nd (or possibly even 3rd) order at the end before decoding.

A lot of ambisonic plug-ins only let one pan sound around at a fixed distance, whereas most sound sources travel in straight lines or ways that can be approximated by a succession of straight lines.

Of course, there is a problem in that ambisonics is essentially dimensionless. This arises in calculating delay compensation in loudspeaker arrays, and in simulating the Doppler effect. The delay is related to the ‘real’ distance in meters or some other defined dimension.

Many years gone I was able to make plug-ins with Max 4. Some will still work in Reaper, though the user interface has gone. I’m not a proper programmer, and cannot author my own plug-ins. Most of my audio work is done in ProTools, though I do use Logic to work with some clients. Logic is crippled for use with ambisonics. I occasionally use Reaper. Cubase and (better) Nuendo are good alternatives with a decent architecture, but how many DAWs does one need, can afford, and can be good at using. Many times, when forced to use Logic, I feel that I could have finished the job in ProTools by the time I’ve trawled through the Logic manual and gone online to work out how to do what I need to.

Hence my interest in ProTools plug-ins, as I would need to use those to ease production. Those available (apart from the Blue Ripple ones) do not provide any loudspeaker decoders, just binaural ones. Hence my desire to be able to build one that works simply. I can, of course, send audio from ProTools via Soundflower or Loopback to Max, encode there and record the B-Format or loudspeaker feed signals. However, if I need to record back into ProTools, or import this recording into it, I have to ensure that it is spatially compatible.

“Reverse engineering the mathematical formulae” seems the most efficient way of doing this.

Incidentally, I have been using the trial versions of the Noise Makers and Dear Reality plug-ins, and the free 03 Core Blue Ripple ones. The latter only allows rotation, but the other two will pan freely.

Ciao,

Dave

Thanks Dave for this detailed description of your workflow.
That seems quite interesting, and your insights are valuable.
I will rack my brains to see if I can simplify interoperability of Spat with other toolsets.
The main challenge, as discussed before, is that Spat is a large framework (HOA being only one option of the Panning module) and we need to ensure some sort of backward compatibility with the repertoire. Therefore it’s just not possible to brutally change the XY coordinate system throughout the library…

Best,
T.

Hi T,

I totally understand what you are saying.

I have no complaint with the Spat~ objects, as they are consistent with themselves, work well, are efficient, and easy to use.

I am probably not a typical user, using very few objects from the library and building things around them to fit with what I’m trying to achieve.

I was certainly not expecting that it was feasible to to change Spat~'s coordinate system, just trying to find a way round the problems I was encountering, and ensure that what I am doing works with what others are doing.

I have found it very confusing working through all the information I can find to resolve different coordinate systems, and descriptions to arrive at some sort of “standard” practice.

As someone said “Standards are great things. That’s why we have so many of them”.

Thanks for your help, and I hope that you’re not adversely affected by Covid-19.

Incidentally, I seem to get a stream of error messages when loading my patch that are like the following.

spat5.hoa.decoder~: error occurred when processing “/speakers/aed 149.971 0 1 30.0294 0 1 90 0 1 0 90 1 -149.971 0 1 -30.0294 0 1 -90 0 1 0 90 1 -52.394 -43.9356 0 -43.516 26.4781 0 14.0362 51.7078 0 53.1301 11.3099 0 41.0548 32.3115 0 -97.289 -30.4654 0 -2.07003 -45.3244 0 171.983 37.9907 0”. Reason: invalid loudspeaker setup: speaker #4 and #8 are almost coincident

This seems to happen as the patch is opening, before an xml file describing the loudspeaker positions and other data is read. Loading the xml file itself brings up no error messages and everything is fine.

This happened even before installing an automatic xml read system. I tried fixing it by installing a loadbang triggering a valid message, but that didn’t help. Then I tried a load bang with a set of random values for each loudspeaker bpatcher, which produces messages like the above.

It seems that as the patch is building, it is assumed that all speakers are at the same default position.

I had a similar problem with spat5.diagmatrix~, which seems to have been solved with a loadbang and appropriate message.

Any clues ??

Ciao,

Dave

Splitting the coordinate list for readability :

/speaker/1/aed 149.971 0 1
/speaker/2/aed 30.0294 0 1
/speaker/3/aed 90 0 1
/speaker/4/aed 0 90 1
/speaker/5/aed -149.971 0 1
/speaker/6/aed -30.0294 0 1
/speaker/7/aed -90 0 1
/speaker/8/aed 0 90 1
/speaker/9/aed -52.394 -43.9356 0
/speaker/10/aed -43.516 26.4781 0
/speaker/11/aed 14.0362 51.7078 0
/speaker/12/aed 53.1301 11.3099 0
/speaker/13/aed 41.0548 32.3115 0
/speaker/14/aed -97.289 -30.4654 0
/speaker/15/aed -2.07003 -45.3244 0
/speaker/16/aed 171.983 37.9907 0

(NB : you can do that with spat5.osc.split)

you’ll notice that, indeed, speaker #4 and #8 are both located at the zenith.
This will mess up the HOA decoding, and you should fix that.

That said, you can sometimes get spurious error messages when setting loudspeaker positions. Typically this happens when you set the positions one by one, as this could result in an intermediate state that is unstable. Therefore I recommend setting all positions at once, as list (using the /speakers/aed message), just as you did.

Otherwise, feel free the send the patch with the complaining object; I’ll try to have a look.

Cheers,
T.

Also, speakers #9 to #16 have a distance of 0, i.e. they all are coincident, and located at the origin (xyz=0,0,0).
HOA decoders (or any other panners) won’t work with such a layout.

T.

I had a similar problem with 3 order ambisonic files exported from Nuendo. I fixed it with 90 'yaw rotation in “spat5.hoa.rotate”

Hi there! Just stumbled over this enlightening discussion, thank you very much.

In the beginning of the thread Dave says:
“Simply swapping X and Y channels in the decoder doesn’t seem to fix this, but a rotation of -90 degrees does.” Which indeed seem to be the solution. I was however wondering if dimension swapping (plus normalisation adaption) could not also solve this? By this I mean something along the lines of Krohnlacners Ambix-converter plugin that converts forth and back to ACN/SN3D and a number of other conventions even at higher order (respecting the X and Y dimensions throughout). This plugin however does not include the IRCAM channel order convention, which I believe it could be made to do. Rotation and swapping dimensions seem (conceptually) equally simple. But maybe there’s a reason why Spat5 prefers rotation?

Best Hans Peter Stubbe

BTW There is of course the objects Spat5.hoa.sorting~ (for FuMa, ACN, SID channel order conversion) and Spat5.hoa.converter~ (for normalisation conversion). Would it be an idea to include the IRCAM channel format into those objects? In my view that would make format conversion easy and safe.

In my working experience mixing tools from several developers has always required carefull attention to the channel/norm formats. Small mistakes can actually have a huge impact. Though ACN has gained widespread use, we are still not at a point of a commonly agreed format. Nor is this likely to happen. Therefore safe conversion tools are much appreciated.

Best Hans Peter Stubbe

Hi Peter,

As they say “standards are great, that’s why we have so many of them”.

Over the past few years the Ambix convention has overtaken the Furse-Malham one, partly because of increased interest in higher order ambisonics, and the mathematics involved in describing spherical harmonics. Letters of the alphabet (W,X,Y,Z) were not enough to describe the large number of harmonics possible, and we’re working backwards through the alphabet.

Ambix has changed the channel order, so W,X,Y,Z becomes W,Y,Z,X, but not the harmonics themselves. X is still first order front/rear, Y left/right etc… We stick with Gerzon’s original coordinate system, x = rear/front, -1 to +1, y = left/right +1 to -1, z = down/up -1 to +1. Horizontal rotations are positive going counter clockwise.

These are somewhat counter intuitive, y and direction of rotation particularly so. Perhaps not for left-handers ???

Perceptually, left/right, back/front, down/up is probably the right order for our spatial perception. Ambix is counterintuitive, with up/down apparently more important than back/front.

Then we encounter graphics conventions, based on a 2D page or screen. x = left/right -/+, y = down/up -/+, z = back/front -/+, as viewed from a nominal front. As a plan view x and y are interchangeable and z is always zero. Confusing but intuitive.

Resolving the differences between the visual and the ambisonic conventions can get rather brain scrambling. Using Jitter as a graphic display can involve a lot of coordinate scrambling and trial and error.

As a ProTools user I was trying to use plug-ins for it to produce a third order B-Format output to a Max built loudspeaker decoder, using Spat~ objects. There seem to be no good plug-in decoders like this, just binaural decoders. I had already made a patch to encode and decode from scratch, and this worked fine. When I tried decoding from ProTools using Soundflower to connect to Max, it was all rotated by 90 degrees, and clockwise became anticlockwise. I wished to be able to bounce to a B-Format file and be able to play it. All the plug-ins from several sources seemed consistent, as did the ICST Max objects, and various VST plug-ins in Reaper. Spat` was doing something different: a 90 degree rotation. Consistent within Spat~, with an internal channel order that differed from the ACN order everyone else seemed to be using. Resolving this took me quite a while.

I totally appreciate Spat~'s history, self consistency, and the efficiency and capability of it’s objects, and the problems involved with differing coordinate systems.

Ciao,

Dave

Hi all,

I know there’s a lot of confusion, and I apologize for that.
Trying to clarify :
ACN describes how the channels are ordered, namely :
Y(0,0), Y(1,-1), Y(1,0), Y(1,1), Y(2,-2), Y(2,-1), Y(2,0), Y(2,1), Y(2,2), Y(3,-3), Y(3,-2), Y(3,-1), Y(3,0), Y(3,1), Y(3,2), Y(3,3), etc.
with the letter code, this corresponds to : W, Y, Z, X, V, T, R, S, U, Q, O, M, K, L, N, P

ACN ordering is the default in Spat and in most other tools nowadays.
I repeat : Spat uses ACN. There is no “IRCAM channel format”.

“Y” component is a dipole along the Y-axis, and “X” component is a dipole along the X-axis. That’s simple and intuitive.
The only question/ambiguity, as Dave mentioned, is : what is X-axis and what is Y-axis ?
There is no right or wrong answer to this question, this is just an arbitrary convention. As a matter of fact, Spat uses a convention that seems to differ from most other tools (AmbiX plugins for instance).

This is described, for instance, in spat5.tuto-bformat.maxpat and spat5.tuto-hoa-1.maxpat :

As explained in this tutorial, converting from one convention to another is straightforward : you need to apply a 90° rotation.

Finally : no, a 90° rotation is not the same as swapping channels. A change of polarity is also involved (at least for 1st order components). Have a look at the attached patcher to convince yourself.

So, to summarize :
Spat uses ACN ordering, but the scene is rotated 90° in the XY-plane compared to most other HOA tools, because Spat uses a different convention for X- and Y- axis.
Apply a +/-90° rotation when you need cross-compatibility.
(+90° when you import from AmbiX to Spat; -90° when you export from Spat to AmbiX)

I hope this helps,
T.


----------begin_max5_patcher----------
1271.3oc6YszaaiCD9r8uBAgdzwkTurzdpsXA5ks.KvdXOXDDPKQ6vrxhFTT
tNsn429xGhVxNLxxNZCRvlbPghhjy78MyPNb7OGOxcAcGtz042bl6LZzOGOZ
jpKYGipeej6ZztzbToZXtqwkknUX2I5uww63p9AldHYp2oKt6JXfoyMHd5sj
hU2vvobs37AfofINQpmdISCEOgSANWWOkhp0jhbLWIVulNoUbSuv5d0cwueC
VuzttNWK+xuFOV9XxyDZWkXEb9c.Nun2JfyN175BavWaXKmrEOMifxMZ8VDq
.sFe3GmCAWaAq9QmFqwJTFDHaGD+TXEZEqFFXIMspbAkkgYozbJSK.vTen+L
OwpauUin1fXBHwwravEnE43t4wINtKyoHALLyuDsEmcChyYjEUbbSqxZlslZ
sqoiZMfQt3caXB+IBsPQit59EFr5UXKJuBSW93I1.hbZwJa1nPiM5fQuVXuk
izW40Y66Dkpb0SMfxaoL9d4cO561jhg.ss.UEDdI+9Zd2.3wM+afhG+nP2b9
.zVP4dG0kzBdI4GZUAZvaG9uv.fw0sOAqx0eOW8YV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