#include </opt/build/repo/nap/system_modules/napfft/src/fluxmeasurementcomponent.h>
Public Member Functions | |
void | getDependentComponents (std::vector< rtti::TypeInfo > &components) const override |
![]() | |
virtual const rtti::TypeInfo | getInstanceType () const =0 |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
float | mMinHz = 0.0f |
Property: 'MinHz' Minimum cutoff frequency. More... | |
float | mMaxHz = 44100.0f |
Property: 'MaxHz' Maximum cutoff frequency. More... | |
float | mScale = 1.0f |
Property: 'Scale' Scaling applied to raw result before clamping. More... | |
float | mDecay = 0.95f |
Property: 'Decay' Decay factor applied to final result. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Component to measure flux of the audio signal from an audio component. Flux is measured by taking the difference between the RMS of the previous and current FFT. The frequency band to be measured can be specified using MinHz
and MaxHz
. The last frame's measurement minus a decrement value based on decay is compared against the most recent measurement to return a smooth signal with getFlux()
.
|
overridevirtual |
Populates a list of components this component depends on. Every component dependency, when found, is initialized before this component. A dependency is NOT a hard requirement. Serialization will not fail if the dependent component isn't declared in JSON. It only means that when a component is declared under the same entity, and that component is tagged as a dependency of this component, it is initialized before this component. It is your responsibility to return false on initialization if the dependency is a hard requirement and can't be found. To ensure the right order of initialization based on a hard requirement it is advised to use a nap::ComponentPtr instead.
components | list of component types this resource depends on. |
Reimplemented from Component.
float mDecay = 0.95f |
Property: 'Decay' Decay factor applied to final result.
float mMaxHz = 44100.0f |
Property: 'MaxHz' Maximum cutoff frequency.
float mMinHz = 0.0f |
Property: 'MinHz' Minimum cutoff frequency.
float mScale = 1.0f |
Property: 'Scale' Scaling applied to raw result before clamping.