User-Defined Opcode Database

stereoBformat

Converts b-format ambisonics to uhj stereo.

Download UDO File

Description

Converts b-format ambisonics to uhj stereo.

Syntax

aleft, aright stereoBformat aW, aX, aY, aZ

Initialization

aW, aX, aY, aZ -- the b-format signal

Code

opcode stereoBformat, aa, aaaa

	aW, aX, aY, aZ xin	

	aWcos, aWsin hilbert aW
	aXcos, aXsin hilbert aX
	aYcos, aYsin hilbert aY

	aleft = 0.0928* aXcos + 0.255*aXsin + 0.4699* aWcos - 0.171* aWsin + 0.3277* aYcos
	aright = 0.0928* aXcos - 0.255*aXsin + 0.4699* aWcos + 0.171* aWsin - 0.3277 * aYcos

	xout aleft, aright

endop

Credits

Joseph Anderson and ma++, jan 2005


Previous Home Next
stereoRotate   bformatStereo