kwave  18.07.70
LevelMeter.cpp File Reference
#include "config.h"
#include <math.h>
#include <QApplication>
#include <QBrush>
#include <QColor>
#include <QFont>
#include <QImage>
#include <QPainter>
#include <QPixmap>
#include <QTimer>
#include <KLocalizedString>
#include "libkwave/Utils.h"
#include "LevelMeter.h"
Include dependency graph for LevelMeter.cpp:

Go to the source code of this file.

Variables

static const float UPDATES_PER_SECOND = 8.0f
 
static const float F_FAST_RISE = (20.0f)
 
static const float F_FAST_DECAY = (0.5f)
 
static const float F_PEAK_RISE = (F_FAST_RISE)
 
static const float F_PEAK_DECAY = (0.005f)
 

Variable Documentation

◆ F_FAST_DECAY

const float F_FAST_DECAY = (0.5f)
static

lowpass frequency used for decay of the current (fast) value [Hz]

Definition at line 45 of file LevelMeter.cpp.

Referenced by Kwave::LevelMeter::updateTrack().

◆ F_FAST_RISE

const float F_FAST_RISE = (20.0f)
static

lowpass frequency used for rising the current (fast) value [Hz]

Definition at line 42 of file LevelMeter.cpp.

Referenced by Kwave::LevelMeter::updateTrack().

◆ F_PEAK_DECAY

const float F_PEAK_DECAY = (0.005f)
static

lowpass frequency used for decay of peak values [Hz]

Definition at line 51 of file LevelMeter.cpp.

Referenced by Kwave::LevelMeter::updateTrack().

◆ F_PEAK_RISE

const float F_PEAK_RISE = (F_FAST_RISE)
static

lowpass frequency used for rising the peak values

Definition at line 48 of file LevelMeter.cpp.

Referenced by Kwave::LevelMeter::updateTrack().

◆ UPDATES_PER_SECOND

const float UPDATES_PER_SECOND = 8.0f
static

number of display updates per second

Definition at line 39 of file LevelMeter.cpp.

Referenced by Kwave::LevelMeter::enqueue(), and Kwave::LevelMeter::updateTrack().