FMHDecode1:
Filter:
sc3-plugins/Classes (extension) | Libraries > JoshUGens | UGens > Multichannel > Ambisonics

FMHDecode1
ExtensionExtension

Decode an FMH signal for a specific speaker
 

Description

WARNING: Second-order encoding and decoding has some quirks. Decoding for arbitrary arrays will probably not result in the cleanest results. Often, components need to be discarded depending on the kind of speaker array. See: http://www.muse.demon.co.uk/ref/speakers.html for more information. Some of the more common speaker rigs are pre-done for you according to the specifications from Richard Furse's site.
NOTE: In addition, after a number of conversations with Miguel Negrao (and his contacts with Fons Adriaensen), it is fairly clear that for Second Order decoding to really work well, filtering should be done on the output... for a later date!

Class Methods

.ar

Arguments:

w

Component of a second order ambisonic signal.

x

Component of a second order ambisonic signal.

y

Component of a second order ambisonic signal.

z

Component of a second order ambisonic signal.

r

Component of a second order ambisonic signal.

s

Component of a second order ambisonic signal.

t

Component of a second order ambisonic signal.

u

Component of a second order ambisonic signal.

v

Component of a second order ambisonic signal.

azimuth

Speaker angle in radians. 0 is front, values should be anti-clockwise (-0.5pi is right, 0.5pi is left).

elevation

Speaker elevation in radians. 0 to 0.5pi is up, 0 to -0.5pi is down.

mul
add

.ar1

Arguments:

w

Component of a second order ambisonic signal.

x

Component of a second order ambisonic signal.

y

Component of a second order ambisonic signal.

z

Component of a second order ambisonic signal.

r

Component of a second order ambisonic signal.

s

Component of a second order ambisonic signal.

t

Component of a second order ambisonic signal.

u

Component of a second order ambisonic signal.

v

Component of a second order ambisonic signal.

azimuth

Speaker angle in radians. 0 is front, values should be anti-clockwise (-0.5pi is right, 0.5pi is left).

elevation

Speaker elevation in radians. 0 to 0.5pi is up, 0 to -0.5pi is down.

maxDist

The distance (in meters) to the furthest speaker from center (this allocates the delay size).

distance

The distance (in meteres) to each speaker.

scaleflag

If 1, apply amplitude scaling to the closest signals to match more distant speakers.

mul
add

The following are some common speaker rigs, with the appropriate components zeroed out:

.stereo

.square

stereo pairs - lf, rf, lr, rr

.quad

Clockwise - lf, rf, rr, lr.

.pentagon

center front, rf, rr, lr, lf

.hexagon

lf, rf, r, rr, lr, l

.octagon1

lf, rf, rfs, rrs, rr, lr, lrs, lfs

.octagon2

f, rf, r, rr, rear, lr, l, lf

.cube

lfu, rfu, rru, lru, lfd, rfd, rrd, lrd

.doubleHex

lfu, rfu, ru, rru, lru, lu, lfd, rfd, rd, rrd, lrd, ld

.dodecahedron

top, fu, rfu, rru, lru, lfu, fd, rfd, rrd, lrd, lfd, bottom

Instance Methods

.checkInputs

Examples