Beatmup
|
A piece of sound. More...
#include <signal_fragment.h>
Classes | |
class | DynamicsLookup |
Data structure allowing to plot efficiently audio signal graphs. More... | |
struct | Plot |
Public Member Functions | |
SignalFragment (AudioSampleFormat format, unsigned char channels, int samples) | |
virtual SignalFragment * | clone () const |
sample8 * | getData () |
const AudioSampleFormat | getAudioFormat () const |
msize | getSizeBytes () const |
unsigned char | getBlockSize () const |
unsigned char | getChannelCount () const |
void | zero () |
bool | isDynamicsLookupAvailable () const |
void | updateDynamicsLookup () |
template<typename sample > | |
void | measureDynamics (int time0, int time1, sample *min, sample *max, Signal::Meter::MeasuringMode mode) |
Measures dynamics from time0 to time1 in each channels separately. More... | |
Public Member Functions inherited from Beatmup::Fragments::Fragment | |
const int | getSampleCount () const |
Fragment * | edit () |
Enables editing of the current frame. More... | |
Fragment * | use () |
References the frame when it is used one more time. More... | |
void | drop () |
Dereferences the frame when it is not used any more. More... | |
Private Attributes | |
AudioSampleFormat | format |
unsigned char | channelCount |
number of channels More... | |
unsigned char | blockSize |
size in bytes of a channelwise-multiplexed sample (block containing 1 sample per channel) More... | |
AlignedMemory | data |
struct Beatmup::Audio::SignalFragment::Plot | plot |
Additional Inherited Members | |
Protected Member Functions inherited from Beatmup::Fragments::Fragment | |
Fragment () | |
virtual | ~Fragment () |
Protected Attributes inherited from Beatmup::Fragments::Fragment | |
int | sampleCount |
number of samples within this frame More... | |
A piece of sound.
Audio signals in Beatmup can be fragmented. SignalFragment is a continuous piece of audio signal in memory. A lookup structure is implemented allowing to measure the signal dynamics efficiently.
FOR INTERNAL USE, should not be included anywhere except audio_signal.cpp
Definition at line 38 of file signal_fragment.h.
SignalFragment::SignalFragment | ( | AudioSampleFormat | format, |
unsigned char | channels, | ||
int | samples | ||
) |
Definition at line 240 of file signal_fragment.cpp.
|
virtual |
Implements Beatmup::Fragments::Fragment.
Definition at line 249 of file signal_fragment.cpp.
|
inline |
Definition at line 113 of file signal_fragment.h.
|
inline |
Definition at line 114 of file signal_fragment.h.
|
inline |
Definition at line 115 of file signal_fragment.h.
|
inline |
Definition at line 116 of file signal_fragment.h.
|
inline |
Definition at line 117 of file signal_fragment.h.
void SignalFragment::zero | ( | ) |
Definition at line 260 of file signal_fragment.cpp.
|
inline |
Definition at line 121 of file signal_fragment.h.
void SignalFragment::updateDynamicsLookup | ( | ) |
Definition at line 265 of file signal_fragment.cpp.
template void SignalFragment::measureDynamics | ( | int | time0, |
int | time1, | ||
sample * | min, | ||
sample * | max, | ||
Signal::Meter::MeasuringMode | mode | ||
) |
Measures dynamics from time0 to time1 in each channels separately.
time0 | Start time |
time1 | Stop time |
min | Channelwise multiplexed minima |
max | Channelwise multiplexed maxima |
mode | Measurement mode |
Definition at line 292 of file signal_fragment.cpp.
|
private |
Definition at line 97 of file signal_fragment.h.
|
private |
number of channels
Definition at line 98 of file signal_fragment.h.
|
private |
size in bytes of a channelwise-multiplexed sample (block containing 1 sample per channel)
Definition at line 99 of file signal_fragment.h.
|
private |
Definition at line 100 of file signal_fragment.h.
|
private |