|
Beatmup
|
Data structure allowing to plot efficiently audio signal graphs. More...
Public Member Functions | |
| DynamicsLookup () | |
| ~DynamicsLookup () | |
| void | disposeTree () |
| Frees the current level and all previous. More... | |
| void | configureTree (unsigned char channelCount, int levelCount, int fineStepSize, int coarserStepSize) |
| Sets up the tree structure. More... | |
| template<typename sample > | |
| void | updateTree (const sample *data, int sampleCount) |
| Updates tree from raw sample data. More... | |
| template<typename sample > | |
| void | measure (dtime time0, dtime time1, sample *min, sample *max, const void *data) const |
| Measures dynamics from time0 to time1 in each channels separately. More... | |
| bool | isReady () const |
Private Member Functions | |
| DynamicsLookup (const DynamicsLookup &)=delete | |
| disabling copying constructor More... | |
Private Attributes | |
| DynamicsLookup * | prev |
| previous (finer scale) level More... | |
| void * | minmax |
| (2*size) points per channel, channel-wise multiplexed, interleaved minima and maxima More... | |
| unsigned char | channelCount |
| int | size |
| buffer size in points in one channel, i.e., size in bytes is 2*channelCount*sizeof(magnitude)*size More... | |
| int | step |
| step (block) size in points w.r.t. previous layer (points = samples if there's no previous layer) More... | |
| int | stepTime |
| step (block) size in absolute time units More... | |
Data structure allowing to plot efficiently audio signal graphs.
Definition at line 44 of file signal_fragment.h.
|
privatedelete |
disabling copying constructor
|
inline |
Definition at line 56 of file signal_fragment.h.
| SignalFragment::DynamicsLookup::~DynamicsLookup | ( | ) |
Definition at line 235 of file signal_fragment.cpp.
| void SignalFragment::DynamicsLookup::disposeTree | ( | ) |
| void SignalFragment::DynamicsLookup::configureTree | ( | unsigned char | channelCount, |
| int | levelCount, | ||
| int | fineStepSize, | ||
| int | coarserStepSize | ||
| ) |
Sets up the tree structure.
| channelCount | Number of channels |
| levelCount | Number of detail levels |
| fineStepSize | The most detailed level step size in samples |
| coarserStepSize | Size of step in points for every upper (less detailed) level |
Definition at line 64 of file signal_fragment.cpp.
|
inline |
Updates tree from raw sample data.
| data | Pointer to the input data |
| sampleCount | Number of samples pointed by the data in each channel |
Definition at line 83 of file signal_fragment.cpp.
| template void SignalFragment::DynamicsLookup::measure | ( | dtime | time0, |
| dtime | time1, | ||
| sample * | min, | ||
| sample * | max, | ||
| const void * | data | ||
| ) | const |
Measures dynamics from time0 to time1 in each channels separately.
| time0 | Start time |
| time1 | Stop time |
| min | Channelwise multiplexed minima |
| max | Channelwise multiplexed maxima |
| data | Channelwise multiplexed sample data for a more precise measurement; may be null |
Definition at line 144 of file signal_fragment.cpp.
|
inline |
Definition at line 93 of file signal_fragment.h.
|
private |
previous (finer scale) level
Definition at line 46 of file signal_fragment.h.
|
private |
(2*size) points per channel, channel-wise multiplexed, interleaved minima and maxima
Definition at line 47 of file signal_fragment.h.
|
private |
Definition at line 48 of file signal_fragment.h.
|
private |
buffer size in points in one channel, i.e., size in bytes is 2*channelCount*sizeof(magnitude)*size
Definition at line 49 of file signal_fragment.h.
|
private |
step (block) size in points w.r.t. previous layer (points = samples if there's no previous layer)
Definition at line 50 of file signal_fragment.h.
|
private |
step (block) size in absolute time units
Definition at line 51 of file signal_fragment.h.