![]() |
VISR
0.11.1
Versatile Interactive Scene Renderer
|
#include <time_frequency_transform.hpp>
Public Types | |
using | SampleType = visr::SampleType |
Public Member Functions | |
TimeFrequencyTransform (SignalFlowContext const &context, char const *name, CompositeComponent *parent, std::size_t numberOfChannels, std::size_t dftLength, std::size_t windowLength, std::size_t hopSize, char const *fftImplementation="default") | |
TimeFrequencyTransform (SignalFlowContext const &context, char const *name, CompositeComponent *parent, std::size_t numberOfChannels, std::size_t dftLength, efl::BasicVector< SampleType > const &window, std::size_t hopSize, char const *fftImplementation="default") | |
~TimeFrequencyTransform () override | |
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) | |
Component to transform a multichannel input audio signal into a sequence of time-frequency parameter data.
|
explicit |
Constructor. Creates a time-frequency transformation component with a default window shape.
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 |
numberOfChannels | The number of distinct audio waveforms received through the input audio port. |
dftLength | The size of the DFT transform used. Must be a power of two for most FFT implementations. |
windowLength | The length of the window. A Hann window modified to satisfy the Constant Overlap-Add (COLA) property is used. |
hopSize | Advance (in samples) between successive frames. The component's period size must be an ineger multiple of the hop size. |
fftImplementation | String desribing the FFT implementation to be used. Optional parameter, defaults to the platform's default FFT implementation. |
|
explicit |
Constructor. Creates a time-frequency transformation component with a user-defined window shape.
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 |
numberOfChannels | The number of distinct audio waveforms received through the input audio port. |
dftLength | The size of the DFT transform used. Must be a power of two for most FFT implementations. |
window | The coefficients of the window applied to the time-domain input frames. |
hopSize | Advance (in samples) between successive frames. The component's period size must be an ineger multiple of the hop size. |
fftImplementation | String desribing the FFT implementation to be used. Optional parameter, defaults to the platform's default FFT implementation. |
|
overridedefault |
Destructor (virtual)
|
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.