Classes (extension) | Libraries > JoshUGens | UGens > Multichannel > Ambisonics

FMHEncode2 : BFPanner : MultiOutUGen : UGen : AbstractFunction : Object
ExtensionExtension

Second Order Ambisonic encoder

Description

Class Methods

FMHEncode2.ar(in, point_x: 0, point_y: 0, elevation: 0, gain: 1, wComp: 0)

Arguments:

in

Input signal.

point_x

A point on the x-axis.

point_y

A point on the y-axis.

elevation

In radians, -0.5pi to +0.5pi.

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.

x, y positions:

  • 0 -1 behind
  • 0 1 in front
  • -1 0 right
  • 1 0 left
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;

// 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 = FMHEncode2.ar(WhiteNoise.ar,MouseX.kr(-1, 1),
        MouseY.kr(-1.0, 1.0), 0);
}.scope(9));