![]() |
VISR
0.11.8
Versatile Interactive Scene Renderer
|
#include <sparse_gain_matrix.hpp>
Public Types | |
enum | ControlPortConfig { ControlPortConfig::No = 0, ControlPortConfig::RoutingPoints = 1, ControlPortConfig::RoutingList = 2, ControlPortConfig::Gain = 4, ControlPortConfig::All = RoutingPoints | RoutingList | Gain } |
Public Member Functions | |
SparseGainMatrix (SignalFlowContext const &context, char const *name, CompositeComponent *parent, std::size_t numberOfInputs, std::size_t numberOfOutputs, std::size_t interpolationSteps, std::size_t maxRoutingPoints, rbbl::SparseGainRoutingList const &initialRoutings=rbbl::SparseGainRoutingList(), ControlPortConfig controlInputs=ControlPortConfig::No) | |
void | process () override |
![]() | |
AtomicComponent (SignalFlowContext const &context, char const *name, CompositeComponent *parent=nullptr) | |
AtomicComponent (AtomicComponent const &)=delete | |
AtomicComponent (AtomicComponent &&)=delete | |
virtual | ~AtomicComponent () override |
![]() | |
Component (SignalFlowContext const &context, char const *componentName, CompositeComponent *parent) | |
Component (SignalFlowContext const &context, std::string const &componentName, CompositeComponent *parent) | |
Component (Component const &)=delete | |
Component (Component &&)=delete | |
Component & | operator= (Component const &)=delete |
Component & | operator= (Component &&)=delete |
virtual | ~Component () |
std::string const & | name () const |
std::string | fullName () const |
void | status (StatusMessage::Kind status, char const *message) |
template<typename ... MessageArgs> | |
void | status (StatusMessage::Kind status, MessageArgs ... args) |
bool | isComposite () const |
AudioPortBase & | audioPort (char const *portName) |
AudioPortBase const & | audioPort (char const *portName) const |
AudioPortBase & | audioPort (std::string const &portName) |
AudioPortBase const & | audioPort (std::string const &portName) const |
ParameterPortBase & | parameterPort (char const *portName) |
ParameterPortBase const & | parameterPort (char const *portName) const |
ParameterPortBase & | parameterPort (std::string const &portName) |
ParameterPortBase const & | parameterPort (std::string const &portName) const |
SamplingFrequencyType | samplingFrequency () const |
std::size_t | period () const |
bool | isTopLevel () const |
impl::ComponentImplementation & | implementation () |
impl::ComponentImplementation const & | implementation () const |
Additional Inherited Members | |
![]() | |
static const std::string & | nameSeparator () |
![]() | |
Component (impl::ComponentImplementation *impl) | |
Audio Component for matrixing a vector of input signals to a vector of output signals with a specific gain value for each routing point. The gain matrix can be changed at runtime. Optionally, the class features smooth transitions between differing gain settings. This class has one input port named "in" and one output port named "out". The width of these ports is determined by the arguments "numberOfInput" and "numberOfOutputs", respectively, which are passed to the setup() method.
|
strong |
Enumeration describing which control parameter input are to be instantiated.
|
explicit |
Constructor.
context | Configuration object containing basic execution parameters. |
name | The name of the component. Must be unique within the containing composite component (if there is one). |
parent | Pointer to a containing component if there is one. Specify nullptr in case of a top-level component |
numberOfInputs | The number of signals in the input signal. |
numberOfOutputs | The number of signals in the output signal. |
interpolationSteps | The number of samples needed for the transition after a new gain is set. It must be an integral multiple of the period of the signal flow. The value "0" denotes an immediate application of the new gain value. |
maxRoutingPoints | The maimum number of routing points supported. This number must not be exceeded either in the initial setting or during run-time updates. This number also determines the size of the gain vector parameter for runtime updates. |
initialRoutings | |
controlInputs | Enumeration value to control which parameter inputs for runtime control are instantiated. See |
|
overridevirtual |
Pure virtual process() function. The overriding methods of base classes are called in regular intervals, each processing a fixed number (context.period()
) number of samples.
Implements visr::AtomicComponent.