#include <Envelope.hxx>
Public Types | |
| typedef BPFTmpl< TTime, TData > | TEnvelopeBPF |
Public Member Functions | |
| Envelope () | |
| Envelope (const Envelope &prototype, const bool shareData=false, const bool deep=true) | |
| __COMMON_DYNAMIC_TYPE (Envelope, 2) | |
| __COMMON_DYN_ATTRIBUTE (0, public, EnvelopeConfig, Config) protected | |
| Configuration of Envelope with information about it. | |
| bool | LoadConfig (CLAM::Storage &s) |
| __COMMON_DYN_ATTRIBUTE (1, public, TEnvelopeBPF, AmplitudeBPF) protected | |
| BPF, with amplitude returned as TData values. | |
| bool | LoadAmplitudeBPF (CLAM::Storage &s) |
| 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. | |
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 | ( | ) | [inline] |
Definition at line 73 of file Envelope.hxx.
| CLAM::Envelope::Envelope | ( | const Envelope & | prototype, | |
| const bool | shareData = false, |
|||
| const bool | deep = true | |||
| ) | [inline] |
Definition at line 73 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 39 of file Envelope.cxx.
| CLAM::Envelope::__COMMON_DYN_ATTRIBUTE | ( | 1 | , | |
| public | , | |||
| TEnvelopeBPF | , | |||
| AmplitudeBPF | ||||
| ) | [inline] |
BPF, with amplitude returned as TData values.
Definition at line 81 of file Envelope.hxx.
| CLAM::Envelope::__COMMON_DYN_ATTRIBUTE | ( | 0 | , | |
| public | , | |||
| EnvelopeConfig | , | |||
| Config | ||||
| ) | [inline] |
Configuration of Envelope with information about it.
Definition at line 77 of file Envelope.hxx.
| CLAM::Envelope::__COMMON_DYNAMIC_TYPE | ( | Envelope | , | |
| 2 | ||||
| ) |
| 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 47 of file Envelope.cxx.
| void CLAM::Envelope::DefaultInit | ( | void | ) | [protected] |
Configure the Envelope with an EnvelopeConfig created by default.
Reimplemented from CLAM::DynamicType.
Definition at line 58 of file Envelope.cxx.
| int CLAM::Envelope::GetBPFSize | ( | ) | const [inline] |
Method to obtain the size of the Break Point Function.
Definition at line 144 of file Envelope.hxx.
| const ProcessingDataConfig & CLAM::Envelope::GetProcessingDataConfig | ( | ) | const [inline] |
Method that allows get the configuration of the Envelope.
Definition at line 139 of file Envelope.hxx.
| int CLAM::Envelope::GetScale | ( | ) | const [inline] |
| bool CLAM::Envelope::LoadAmplitudeBPF | ( | CLAM::Storage & | s | ) | [inline] |
Definition at line 81 of file Envelope.hxx.
| bool CLAM::Envelope::LoadConfig | ( | CLAM::Storage & | s | ) | [inline] |
Definition at line 77 of file Envelope.hxx.
| void CLAM::Envelope::SetBPFSize | ( | int | s | ) | [inline] |
| void CLAM::Envelope::SetScale | ( | int | s | ) | [inline] |
Change the Scale factor.
| s | New Scale factor |
Definition at line 158 of file Envelope.hxx.
1.6.3