CLAM-Development
1.4.0
|
#include <Envelope.hxx>
Public Types | |
typedef BPFTmpl< TTime, TData > | TEnvelopeBPF |
Public Member Functions | |
DYNAMIC_TYPE_USING_INTERFACE (Envelope, 2, ProcessingData) | |
DYN_ATTRIBUTE (0, public, EnvelopeConfig, Config) | |
Configuration of Envelope with information about it. | |
DYN_ATTRIBUTE (1, public, TEnvelopeBPF, AmplitudeBPF) | |
BPF, with amplitude returned as TData values. | |
Envelope (const EnvelopeConfig &newConfig) | |
Constructor class given a concrete configuration. | |
const ProcessingDataConfig & | GetProcessingDataConfig () const |
Method that allows get the configuration of the Envelope. | |
void | Configure (const EnvelopeConfig &newConfig) |
Create the configuration of Envelope using an EnvelopeConfig instantiation. | |
int | GetBPFSize () const |
Method to obtain the size of the Break Point Function. | |
void | SetBPFSize (int s) |
Resize the BPF. | |
int | GetScale () const |
Method to obtain the value of Scale. | |
void | SetScale (int s) |
Change the Scale factor. | |
![]() | |
ProcessingData (const int n) | |
Constructor of an object that will contain the number of attributes passed by parameter. | |
ProcessingData (const ProcessingData &prototype, bool shareData=false, bool deep=true) | |
Copy constructor of a ProcessingData object. | |
virtual | ~ProcessingData () |
![]() | |
DynamicType (const int nAttr) | |
Constructs a DynamicType object that can hold. | |
DynamicType (const DynamicType &prototype, const bool shareData, const bool deepCopy) | |
Copy constructor of a dynamic Type. | |
DynamicType (const DynamicType &prototype) | |
virtual | ~DynamicType () |
virtual const char * | GetClassName () const =0 |
Return the class name. | |
void | CopyInit (const DynamicType &dt) |
This method allows custom code for the copy-constructor of a dynamic type, since the copy-constructor is macro expanded and can not be overwritted. | |
bool | UpdateData () |
Method used to resize the data space of the dynamic type, necessary when some AddXXX() / RemoveXXX() (where XXX is an attribute name) has been done. | |
unsigned | GetNDynamicAttributes () const |
const char * | GetDynamicAttributeName (unsigned i) |
virtual const std::type_info & | GetTypeId (unsigned i) const =0 |
bool | AttributeIsComponent (unsigned i) const |
bool | AttributeIsDynamictype (unsigned i) const |
bool | IsAttributeInstantiated (unsigned i) const |
const void * | GetAttributeAsVoidPtr (unsigned i) const |
const Component * | GetAttributeAsComponent (unsigned i) const |
Component * | GetAttributeAsComponent (unsigned i) |
void | FullfilsInvariant () const |
virtual Component * | DeepCopy () const |
void | Debug () const |
virtual void | StoreOn (CLAM::Storage &storage) const |
Stores component's subitems on the given Storage. | |
virtual void | LoadFrom (CLAM::Storage &storage) |
Loads component's subitems from the given Storage. | |
![]() | |
virtual | ~Component () |
Protected Member Functions | |
void | DefaultInit () |
Configure the Envelope with an EnvelopeConfig created by default. |
Envelope class.
This class tipically represents the amplitude envelope of an audio object. The internal representation is a BreakPoint function (BPF). For a floating point abcisa value representing time (in milliseconds), the BPF returns the amplitude value, in an scale from 0.0 to 1.0.
Definition at line 67 of file Envelope.hxx.
typedef BPFTmpl<TTime,TData> CLAM::Envelope::TEnvelopeBPF |
Definition at line 71 of file Envelope.hxx.
CLAM::Envelope::Envelope | ( | const EnvelopeConfig & | newConfig | ) |
Constructor class given a concrete configuration.
&newConfig | reference to an Envelope Configuration established by the user |
Definition at line 41 of file Envelope.cxx.
References Configure(), and CLAM::DynamicType::UpdateData().
void CLAM::Envelope::Configure | ( | const EnvelopeConfig & | newConfig | ) |
Create the configuration of Envelope using an EnvelopeConfig instantiation.
&newConfig | reference to an Envelope Configuration established by the user |
Definition at line 49 of file Envelope.cxx.
References GetBPFSize(), and CLAM::DynamicType::UpdateData().
Referenced by DefaultInit(), and Envelope().
|
protected |
Configure the Envelope with an EnvelopeConfig created by default.
Reimplemented from CLAM::DynamicType.
Definition at line 60 of file Envelope.cxx.
References Configure(), and CLAM::DynamicType::UpdateData().
CLAM::Envelope::DYN_ATTRIBUTE | ( | 0 | , |
public | , | ||
EnvelopeConfig | , | ||
Config | |||
) |
Configuration of Envelope with information about it.
CLAM::Envelope::DYN_ATTRIBUTE | ( | 1 | , |
public | , | ||
TEnvelopeBPF | , | ||
AmplitudeBPF | |||
) |
BPF, with amplitude returned as TData values.
CLAM::Envelope::DYNAMIC_TYPE_USING_INTERFACE | ( | Envelope | , |
2 | , | ||
ProcessingData | |||
) |
|
inline |
Method to obtain the size of the Break Point Function.
Definition at line 144 of file Envelope.hxx.
Referenced by Configure().
|
inline |
Method that allows get the configuration of the Envelope.
Definition at line 139 of file Envelope.hxx.
|
inline |
|
inline |
|
inline |