Middle pan is a rotation of the M-axis with the S-axis left in place.
Arguments:
in |
The stereo input, an array: [L, R] |
angle |
Middle pan angle in radians between -pi/4, pi/4 |
Returns:
Middle-panned signal, an array: [L, R]
NOTE: In this example, we define an MS input, with a percussive sinusoid in the middle channel and noise in the side. Uncomment one of the signals at the bottom to compare the input with its M-Pan transform.