FMHEncode1 Second Order Ambisonic encoder
FMHEncode1.ar(in, azimuth, elevation, rho, gain)
in - input signal
azimuth - in radians, -pi to pi
elevation - in radians, -0.5pi to +0.5pi
rho - the speaker radius (1 places shound at the radius, <1 within the radius, >1 is outside the radius)
beyond the radius, nothing happens.
gain - a control rate level input.
Output channels are in order W,X,Y,Z, R, S, T, U, V.
s=Server.internal.boot;
// You'll only hear the first two channels on a stereo setup.
(
{
var w, x, y, z, r, s, t, u, v;
#w, x, y, z, r, s, t, u, v = FMHEncode1.ar(WhiteNoise.ar,MouseX.kr(0, 2pi), 0.2, MouseY.kr(0.0, 1.0), 0.3);
}.scope(9));