< Back to IRCAM Forum

Spat5 Listener Rotation

Hi,
beginner question i’m afraid:

I can’t figure out why the listener orientation (with panning type binaural) isn’t affecting the audio… I can see it rotate in oper but the sound doesn’t change at all!

Am I missing something? Any hint would be appreciated!
Regards, Jakob

Screenshot 2022-05-09 204739

{
	"boxes" : [ 		{
			"box" : 			{
				"maxclass" : "gain~",
				"outlettype" : [ "signal", "" ],
				"parameter_enable" : 0,
				"id" : "obj-6",
				"patching_rect" : [ 252.0, 197.0, 22.0, 140.0 ],
				"numinlets" : 1,
				"multichannelvariant" : 0,
				"numoutlets" : 2
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "*~",
				"outlettype" : [ "signal" ],
				"id" : "obj-3",
				"patching_rect" : [ 197.5, 128.0, 29.5, 20.0 ],
				"numinlets" : 2,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "noise~",
				"outlettype" : [ "signal" ],
				"id" : "obj-1",
				"patching_rect" : [ 197.5, 95.0, 38.0, 20.0 ],
				"numinlets" : 1,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "counter",
				"outlettype" : [ "int", "", "", "int" ],
				"id" : "obj-30",
				"patching_rect" : [ 380.0, 69.0, 61.0, 20.0 ],
				"numinlets" : 5,
				"numoutlets" : 4
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "toggle",
				"outlettype" : [ "int" ],
				"parameter_enable" : 0,
				"id" : "obj-26",
				"patching_rect" : [ 97.0, 30.0, 24.0, 24.0 ],
				"numinlets" : 1,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "metro 10",
				"outlettype" : [ "bang" ],
				"id" : "obj-24",
				"patching_rect" : [ 380.0, 42.0, 48.0, 20.0 ],
				"numinlets" : 2,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "/listener/lookat/aed $1 0 1",
				"outlettype" : [ "" ],
				"id" : "obj-22",
				"patching_rect" : [ 380.0, 111.0, 123.0, 20.0 ],
				"numinlets" : 2,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "/panning/type binaural",
				"outlettype" : [ "" ],
				"id" : "obj-23",
				"patching_rect" : [ 506.0, 180.0, 115.0, 20.0 ],
				"numinlets" : 2,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "loadbang",
				"outlettype" : [ "bang" ],
				"id" : "obj-17",
				"patching_rect" : [ 557.0, 142.0, 53.0, 20.0 ],
				"numinlets" : 1,
				"numoutlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "spat5.oper",
				"outlettype" : [ "", "", "", "" ],
				"id" : "obj-7",
				"patching_rect" : [ 380.0, 157.0, 59.0, 20.0 ],
				"numinlets" : 1,
				"numoutlets" : 4,
				"saved_object_attributes" : 				{
					"parameter_enable" : 0
				}

			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "spat5.spat~ @inputs 1 @outputs 2 @rooms 1",
				"outlettype" : [ "signal", "signal", "" ],
				"id" : "obj-5",
				"patching_rect" : [ 372.0, 215.0, 224.0, 20.0 ],
				"numinlets" : 1,
				"numoutlets" : 3,
				"saved_object_attributes" : 				{
					"parameter_enable" : 0
				}

			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "plugout~",
				"outlettype" : [ "signal", "signal" ],
				"fontname" : "Arial Bold",
				"id" : "obj-2",
				"patching_rect" : [ 399.5, 368.0, 53.0, 20.0 ],
				"numinlets" : 2,
				"numoutlets" : 2,
				"fontsize" : 10.0
			}

		}
 ],
	"lines" : [ 		{
			"patchline" : 			{
				"source" : [ "obj-6", 0 ],
				"destination" : [ "obj-5", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-3", 0 ],
				"destination" : [ "obj-6", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-1", 0 ],
				"destination" : [ "obj-3", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-26", 0 ],
				"destination" : [ "obj-3", 1 ],
				"order" : 1
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-7", 0 ],
				"destination" : [ "obj-5", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-5", 0 ],
				"destination" : [ "obj-2", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-5", 1 ],
				"destination" : [ "obj-2", 1 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-30", 0 ],
				"destination" : [ "obj-22", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-26", 0 ],
				"destination" : [ "obj-24", 0 ],
				"order" : 0
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-24", 0 ],
				"destination" : [ "obj-30", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-23", 0 ],
				"destination" : [ "obj-5", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-22", 0 ],
				"destination" : [ "obj-7", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-17", 0 ],
				"destination" : [ "obj-23", 0 ]
			}

		}
 ],
	"appversion" : 	{
		"major" : 8,
		"minor" : 2,
		"revision" : 1,
		"architecture" : "x64",
		"modernui" : 1
	}
,
	"classnamespace" : "box"
}

Hi Jakob,

Not a beginner question.
Actually, your scenario revealed two issues :

  • the listener orientation messages are delivered through spat5.oper second outlet, while they should (also) go through the 1st outlet,
  • these messages are not properly interpreted by spat5.spat~ (the implementation was just not finished).

These two issues should be fixed for the next release. I’m sending you a beta build (for macos) so that you can test. Please confirm is that solves your problem or not.

https://filesender.renater.fr/?s=download&token=d192d4fe-b050-4159-ae6e-fecb79b225ce

Best,
T.

1 Like

Oh wow okay!
I’m working on PC right now, in case you have this build for Windows aswell that would be awesome!

Alternatively, would there be a way to get the rotation from the second outlet? Just plugging it in I get an error “[…] Reason: unsupported message”…

Thank you for your help, i really appreciate it!

Screenshot 2022-05-10 103757

The new build for Windows will be available in the coming weeks.
Meanwhile, here is an alternative approach that should work for you :


----------begin_max5_patcher----------
1231.3ocyXsrbhiCEcM7Unx0rj.V9EvrpmOiolLUJYi.T21RTRxjjtqt+1mq
jrSr6XLFvIY1XvRBc04bebtheLchWp3IpxC8mn+AMYxOlNYhcHy.SpdehWA4
orbhxtLuLQQAkq8l4lSSeRaGeifqQzMLMRumhThRYFEcPnXZlfqP6oR5Lj.l
S9HSQcK5.QGO+Hi9HUhHohiTzilcIkhJObmVb2FhlNe9764okZzyhRTFg+pM
raFRQ0ZFemBI1VsghCTY8wKmwoYhRt8LlTM3AIUAPfXNYOz8JH5r8vt9fjlo
crSxJ+49yPgKsefWFZ9XUzbez+V8i1BmcE66Ty5wXXZ2vokoo4tAqFgswxXh
zudWPhWieMmTXWn2eIYj75Y3kELdNUqZtGvfhRc8n9lA+4zolGyFnijSeDNA
uwOlKHaRI7cdmlJBVGa.+ZKSDGYdFfaPDtCl94CT258r62KS2D9QW.HwWAHg
.GsfedrfCrfIHp940.l3WsiD7jZp7AJmT478eeAZUnuJylO0CfiBRlGCXz2E
NGDZdKxuOD6MC4wLo7vW6D3giDvCuBfep5QpLJmht2SRygD8iz68PZgstQNS
og4j8PRwUrSUvgKYGnpaKYOL9SKYueVhwgxuJQdolhxDB4FFGp7pli96pZtE
Ps4ERATxj1hBsk0OOOhisDXX75QgGCv+eqnoK6C3v.HbC8EFmoejo2CgeKbJ
gK.SmB7Uv8dcJMEcZNLzI7DrLwRkNFMd04RX6NS0+B3mfOTQkPrClqtcUE75
2YUkdiBp5m4JBBBNaP.NZUC0pvvyFDbp.A7pKfhBqFUQNR27.7ygi0CDsVx.
4UW2iSdgoNgHfcNKMO5R3UQN0AP2hDNF+IJguMW.ah2YCBbcfF6e9LDi6uMV
2JjEjVs51.8qG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