|
| Map (unsigned int order, unsigned int numberOfSources) |
| The map constructor. More...
|
|
| ~Map () |
| The map destructor. More...
|
|
unsigned int | getNumberOfSources () const |
| This method retrieve the number of sources. More...
|
|
void | setAzimuth (const unsigned int index, const double azimuth) |
| This method set the angle of azimuth of a source. More...
|
|
void | setRadius (const unsigned int index, const double radius) |
| This method set the radius of a source. More...
|
|
void | setMute (const unsigned int index, const bool muted) |
| This method mute or unmute a source. More...
|
|
double | getAzimuth (const unsigned int index) const |
| This method retrieve the azimuth of a source. More...
|
|
double | getRadius (const unsigned int index) const |
| This method retrieve the radius of a source. More...
|
|
bool | getMute (const unsigned int index, const bool muted) const |
| This method retrieve the mute or unmute state of a source. More...
|
|
void | process (const float *inputs, float *outputs) |
| This method performs the encoding with distance compensation with single precision. More...
|
|
void | process (const double *inputs, double *outputs) |
| This method performs the encoding with distance compensation with double precision. More...
|
|
| 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 multi-encoder with distance compensation.
The map is a multi Encoder with distance compensation. It uses intances of the Wider class to decrease the directionnality of sources by simulating fractionnal orders when the sources are inside the ambisonic circle and a simple diminution of the gain when the sources get away from the ambisonic circle.
- See Also
- Encoder
Definition at line 21 of file Map.h.
void Hoa2D::Map::setAzimuth |
( |
const unsigned int |
index, |
|
|
const double |
azimuth |
|
) |
| |
This method set the angle of azimuth of a source.
The angle of azimuth in radian and you should prefer to use it between 0 and 2 Pi to avoid recursive wrapping of the value. The direction of rotation is counterclockwise. The 0 radian is Pi/2 phase shifted relative to a mathematical representation of a circle, then the 0 radian is at the "front" of the soundfield. The index must be between 0 and the number of sources - 1.
- Parameters
-
index | The index of the source. |
azimuth | The azimuth. |
- See Also
- setRadius()
Definition at line 30 of file Map.cpp.
void Hoa2D::Map::setRadius |
( |
const unsigned int |
index, |
|
|
const double |
radius |
|
) |
| |
This method set the radius of a source.
The radius is between 0 and infinity. At 0, the source is in the center of the ambisonic circle and at 1, the source is at the limit of the ambisonic circle. Over 1, the source get away the ambisonic circle. The index must be between 0 and the number of sources - 1.
- Parameters
-
index | The index of the source. |
radius | The radius. |
- See Also
- setAzimuth()
Definition at line 36 of file Map.cpp.