How panning works
Drag a source through a set of speakers and watch each gain resolve in real time. The math running here — mean-value coordinates, constant-power normalization — is the same the MIAP and MIAP~ externals use.
When the listener falls inside a polyset (a set of N ≥ 3 nodes), MIAP gives every node a normalized weight via mean-value coordinates, and each node's gain is the square root of its weight. Because the weights sum to 1, Σ gain² = 1 at every position — constant acoustic power. Outside every set, the source is silent.
References — M. S. Floater (2003), “Mean value coordinates,” CAGD 20(1), 19–27; K. Hormann & M. S. Floater (2006), “Mean value coordinates for arbitrary planar polygons,” ACM TOG 25(4), 1424–1441.
This page uses JavaScript to render an interactive canvas demo. Enable JavaScript for the full experience.
© 2026 Zachary Seldess