A Perl script
that prints out channel values for a given
azimuth and elevation. Works for zero(!), first,
second and third order ambisonics.
Should work on any platform
with Perl installed, thusfar tested on Linux.
$ ./ambcalc.pl
AMBCALC 0.5, 2007/10/11 - Copyright (c) 2007 by Michael Chapman.
This is an early release for comments, the equations need
checking and re-checking line--by--line. Do use. Do enjoy.
But do check for any usage that is critical! --- Bug reports
are more than welcome: xyz@xyz
type q to quit, h for help
angle (a): 45
elevation (e): -45
channel i value ( dB )
----------------------------
W -3.01
X -6.02
Y -6.02
Z - -3.01
----------------------------
A "-" in the "i" column indicates the track is inverted
relative to the W track (that is the amplitude is
negative).
|
$ ./ambcalc.pl --rad --third --nofm --amp
AMBCALC 0.5, 2007/10/11 - Copyright (c) 2007 by Michael Chapman.
This is an early release for comments, the equations need
checking and re-checking line--by--line. Do use. Do enjoy.
But do check for any usage that is critical! --- Bug reports
are more than welcome: xyz@xyz
type q to quit, h for help
angle (a): 1
elevation (e): -1
channel i value
----------------------------
W 1
X 0.292
Y 0.455
Z - -0.841
R 0.562
S - -0.425
T - -0.662
U - -0.105
V 0.23
K 0.227
L 0.454
M 0.707
N 0.198
O - -0.432
P - -0.123
Q 0.018
----------------------------
A "-" in the "i" column indicates the track is inverted
relative to the W track (that is the amplitude is
negative).
|
There is also an option to output material as PDF (for printing).
The above two: simple example and
advanced example
![]() |
![]() |
October 2007.
Copyright © 2007 Michael Chapman.