SuperCollider CLASSES (extension)

FMHEncode1
ExtensionExtension

Second Order Ambisonic encoder
 

Description

Class Methods

*ar (in, azimuth: 0, elevation: 0, rho: 1, gain: 1, wComp: 0)

(describe argument here)

Arguments:

in
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, a distance scaling is applied (no filtering is done).

gain

A control rate level input.

wComp

Chooses how the W channels is scaled. If 0, a scaler of 0.707 is used. If 1, W is varied according to the scaling of the X, Y, Z, R, S, T, U, and V channels. 1 is the default.

NOTE: Output channels are in order W,X,Y,Z, R, S, T, U, V. Because of the way the W component is scaled, it is recommended that you only decode with FMHDecode1 and it's methods.

Inherited class methods

Instance Methods

-init ( ... theInputs)

Inherited instance methods

Examples

s.boot;

(
{
    var w, x, y, z, r, s, t, u, v;
    #w, x, y, z, r, s, t, u, v =
        FMHEncode1.ar(WhiteNoise.ar.dup,MouseX.kr(0, 2pi), MouseY.kr(-0.5pi, 0.5pi) + [0, 0.5pi], 1, 0.3).sum;
    FMHDecode1.cube(w, x, y, z, s, t, v);
}.scope(8);
)