20 #include "../context.h"
21 #include "../memory.h"
22 #include "../exception.h"
23 #include "../fragments/fragment.h"
datatype * ptr(int offset=0)
Data structure allowing to plot efficiently audio signal graphs.
void updateTree(const sample *data, int sampleCount)
Updates tree from raw sample data.
void configureTree(unsigned char channelCount, int levelCount, int fineStepSize, int coarserStepSize)
Sets up the tree structure.
int stepTime
step (block) size in absolute time units
DynamicsLookup * prev
previous (finer scale) level
unsigned char channelCount
int step
step (block) size in points w.r.t. previous layer (points = samples if there's no previous layer)
void measure(dtime time0, dtime time1, sample *min, sample *max, const void *data) const
Measures dynamics from time0 to time1 in each channels separately.
int size
buffer size in points in one channel, i.e., size in bytes is 2*channelCount*sizeof(magnitude)*size
void * minmax
(2*size) points per channel, channel-wise multiplexed, interleaved minima and maxima
void disposeTree()
Frees the current level and all previous.
DynamicsLookup(const DynamicsLookup &)=delete
disabling copying constructor
unsigned char getChannelCount() const
unsigned char blockSize
size in bytes of a channelwise-multiplexed sample (block containing 1 sample per channel)
void updateDynamicsLookup()
SignalFragment(AudioSampleFormat format, unsigned char channels, int samples)
struct Beatmup::Audio::SignalFragment::Plot plot
void measureDynamics(int time0, int time1, sample *min, sample *max, Signal::Meter::MeasuringMode mode)
Measures dynamics from time0 to time1 in each channels separately.
unsigned char channelCount
number of channels
unsigned char getBlockSize() const
virtual SignalFragment * clone() const
const AudioSampleFormat getAudioFormat() const
msize getSizeBytes() const
bool isDynamicsLookupAvailable() const
MeasuringMode
Specifies how to compute signal dynamics (minima and maxima in a given period of time)
Represents a continuous set of data samples.
int sampleCount
number of samples within this frame
const int getSampleCount() const
uint32_t msize
memory size
AudioSampleFormat
Format of audio samples.
CustomPoint< numeric > min(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
CustomPoint< numeric > max(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
JNIEnv jobject jint jint jint channels