< Back to IRCAM Forum

spat.spat~ set listener message bug

Hello,

I’m 99% sure this is a bug. I’m trying to set the listener position and when I send a message to spat.spat~ such as

“listener rpy 30. 30. 30.” or “listener pitch 30.” or “listener roll 30.” I receive these errors:

“invalid message: listener rpy 30. 30. 30.”
“unknown coordinate type”

I have no issues with setting the xyz and yaw values independently.

The documents seem to show that setting rpy, pitch, and roll should be possible.

Are pitch and roll just not supported at the moment?

Hello,

Let’s see it another way:
In spat~, the only situation where moving/rotating the listener would be meaningful is headphone-based rendering (binaural), assuming you have some head-tracking device.

Yet, for the spat.oper and spat.spat~ objects, the listener MUST remain in the central location (0,0,0).
Indeed you can notice that it’s not possible to move the listener in the spat.oper interface.
So, the only proper way to simulate listener’s translation/rotation is to convert the sound scene from the (0,0,0) perspective.
The easiest way to achieve that is to use the spat.abs2rel object.
The attached patch illustrates that: The spat.viewer window represents the sound scene in an absolute perspective; in this perspective, you can freely translate/rotate the listener. Then everything is converted (and rendered) to a (0,0,0)-relative point of view.

In this patch, roll, pitch and yaw messages are supported.
Please note however that only the “yaw” angle is visually depicted in the GUI.

  
----------begin_max5_patcher----------  
1833.3oc2Zs0aaaCF8YmeEDBAXa.tFhTWr8dJAcECECcOz1sWJJBnknsYiLo  
fDctzh1e6iWjjkbjrjcsUbFPhkMuHd9N76pn91ECrlwefjZA9cvm.CF7sKFL  
P2jpgAY+df0J7CAQ3T8vrlGwYqWYMzzULVDrjxVbSBIPXtMddvQdCAPW3H6g  
.ymvoirAeNaNxoSYQDg99AyZjuVHaR7XLwbWTqCVXMDXMCyVXULYZnFE7Ye4  
Ut4fXNmIX3U5YZccBEGsAdIx1EjjaHL7rH8Hr2.CyhpwApz8Jk9U8HgJrmci  
RHoDl.KnbVYY0crV7LRoc1GfOqlz2u3B0GC6HuthjlhWPxQtf7fdMrhnoBBi  
j.R3QQfKgcf4m3p.xjIZnMtIlG0DyWKY60NYWkPg+TDpQD9oHzVUTccsKs4c  
BUTQO+JpttN8lhZLUR06VSMm5OEZp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