HoaLibrary
2.0
High Order Ambisonics Library
|
The planewaves peak level meter. More...
#include <Meter.h>
Public Member Functions | |
Meter (unsigned int numberOfLoudspeakers, unsigned int numberOfRows, unsigned int numberOfColumns) | |
The meter constructor. More... | |
~Meter () | |
The meter destructor. More... | |
void | setLoudspeakerPosition (unsigned int index, double azimuth, double elevation) |
Set the position of a loudspeaker. More... | |
unsigned int | getNumberOfRows () const |
Retrieve the number of rows. More... | |
unsigned int | getNumberOfColumns () const |
Retrieve the number of column. More... | |
void | process (const float *inputs) |
This method performs the widening with single precision. More... | |
void | process (const double *inputs) |
This method performs the widening with double precision. More... | |
![]() | |
Planewaves (unsigned int numberOfLoudspeakers) | |
The planewaves constructor. More... | |
~Planewaves () | |
The planewaves destructor. More... | |
void | setLoudspeakerPosition (unsigned int index, double azimuth, double elevation) |
Set the position of a loudspeaker. More... | |
unsigned int | getNumberOfLoudspeakers () const |
Retrieve the number of loudspeakers. More... | |
double | getLoudspeakerAzimuth (unsigned int index) const |
Retrieve the azimuth of a loudspeaker. More... | |
double | getLoudspeakerElevation (unsigned int index) const |
Retrieve the elevation of a loudspeaker. More... | |
double | getLoudspeakerAbscissa (unsigned int index) const |
Retrieve the abscissa of a loudspeaker. More... | |
double | getLoudspeakerOrdinate (unsigned int index) const |
Retrieve the ordinate of a loudspeaker. More... | |
double | getLoudspeakerHeight (unsigned int index) const |
Retrieve the height of a loudspeaker. More... | |
std::string | getLoudspeakerName (unsigned int index) |
Retrieve the number of loudspeaker. More... | |
The planewaves peak level meter.
The meter should be used to widen the sound propagation.
Hoa3D::Meter::Meter | ( | unsigned int | numberOfLoudspeakers, |
unsigned int | numberOfRows, | ||
unsigned int | numberOfColumns | ||
) |
Hoa3D::Meter::~Meter | ( | ) |
|
inline |
|
inline |
void Hoa3D::Meter::process | ( | const float * | inputs | ) |
This method performs the widening with single precision.
You should use this method for in-place or not-in-place processing and performs the widening sample by sample. The inputs array and outputs array contains the spherical harmonics samples and the minimum size must be the number of harmonics.
inputs | The inputs array. |
void Hoa3D::Meter::process | ( | const double * | inputs | ) |
This method performs the widening with double precision.
You should use this method for in-place or not-in-place processing and performs the widening sample by sample. The inputs array and outputs array contains the spherical harmonics samples and the minimum size must be the number of harmonics.
inputs | The inputs array. |
void Hoa3D::Meter::setLoudspeakerPosition | ( | unsigned int | index, |
double | azimuth, | ||
double | elevation | ||
) |
Set the position of a loudspeaker.
Set the position of a loudspeaker with polar coordinates. The azimtuh is in radian between 0 and 2 Pi, O is the front of the soundfield and Pi is the back of the sound field. The elevation is in radian between -1/2 Pi and 1/2 Pi, -1/2 Pi the the bottom of the sound field, 0 is the center of the sound field and 1/2 Pi is the top of the sound field. The maximum index must be the number of loudspeakers - 1.
index | The index of the loudspeaker. |
azimuth | The azimuth. |
elevation | The elevation. |