23#include "BoundedValue.h"
24#include "EnvelopeFollower.h"
25#include "SphericalHarmonics.h"
26#include "SphericalVector.h"
65 void updateCoefficients();
68 std::array<util::EnvelopeFollower, util::maxNumChannels> _coefficients;
Provides coefficients to encode a mono signal into Ambisonics.
Definition AmbisonicEncoder.h:46
void setParams(const Params &)
Set order and direction for encoding.
Definition AmbisonicEncoder.cpp:43
auto getCoefficientsForNextSample() -> std::array< float, util::maxNumChannels >
Get the channel coefficients for the next input sample.
Definition AmbisonicEncoder.cpp:28
void setSampleRate(double sampleRate)
Set the sample rate. This must be set before using the AmbisonicEncoder.
Definition AmbisonicEncoder.cpp:37
Represents a value that is bounded by a minimum and maximum.
Definition BoundedValue.h:35
Parameters for AmbisonicEncoder.
Definition AmbisonicEncoder.h:50
util::SphericalVector direction
direction to encode to
Definition AmbisonicEncoder.h:51
util::BoundedFloat< 0, util::maxAmbiOrder > order
order to encode to
Definition AmbisonicEncoder.h:52
Represents a direction in spherical coordinates.
Definition SphericalVector.h:31