HoaLibrary
2.0
High Order Ambisonics Library
|
The ambisonic class. More...
#include <Ambisonic.h>
Public Member Functions | |
Ambisonic (unsigned int order) | |
The ambisonic constructor. More... | |
~Ambisonic () | |
The ambisonic destructor. More... | |
unsigned int | getOrder () const |
Retrieve the decomposition order. More... | |
unsigned int | getNumberOfHarmonics () const |
Retrieve the number of harmonics. More... | |
long | getHarmonicArgument (unsigned int index) const |
Retrieve the argument of an harmonic. More... | |
long | getHarmonicBand (unsigned int index) const |
Retrieve the band of an harmonic. More... | |
std::string | getHarmonicsName (unsigned int index) const |
Retrieve a name for an harmonic. More... | |
The ambisonic class.
Most of the ambisonic classes inherit from this classe. It computes the number of harmonics, their arguments and their orders depending of the decomposition order. etc...
Definition at line 18 of file Ambisonic.h.
Hoa2D::Ambisonic::Ambisonic | ( | unsigned int | order | ) |
The ambisonic constructor.
The ambisonic constructor allocates and initializes the generale member values depending of a decomposition order.
order | The order, must be at least 1. |
Definition at line 11 of file Ambisonic.cpp.
Hoa2D::Ambisonic::~Ambisonic | ( | ) |
|
inline |
Retrieve the argument of an harmonic.
The argument of an harmonic is in the range -order to order. The harmonics are sorted by their bands, from 0 to the decomposition order and, in each band, there are the 2 harmonics with the arguments -band and band. For the first bands, the harmonics arrangement is h[0] h[-1] h[1] h[-2] h[2] h[-3] h[3]etc. with h[argument].
index | The index of an harmonic. |
Definition at line 65 of file Ambisonic.h.
|
inline |
Retrieve the band of an harmonic.
The bands of the harmonics are in the range 0 to the decomposition order. Each band contains 2 harmonics with the arguments -band and band. For the first bands, the harmonics arrangement is h[0] h[-1] h[1] h[-2] h[2] h[-3] h[3], etc. with h[argument].
index | The index of an harmonic. |
Definition at line 79 of file Ambisonic.h.
|
inline |
Retrieve a name for an harmonic.
Retrieve a name for an harmonic in a std::string format that will be "harmonic argument".
index | The index of an harmonic. |
Definition at line 94 of file Ambisonic.h.
|
inline |
Retrieve the number of harmonics.
Retrieve the number of harmonics.
Definition at line 52 of file Ambisonic.h.
|
inline |
Retrieve the decomposition order.
Retrieve the decomposition order.
Definition at line 42 of file Ambisonic.h.