svcore
1.9
|
AudioLevel converts audio sample levels between various scales: More...
#include <AudioLevel.h>
Public Types | |
enum | FaderType { ShortFader = 0, LongFader = 1, IEC268Meter = 2, IEC268LongMeter = 3, PreviewLevel = 4 } |
Static Public Member Functions | |
static double | multiplier_to_dB (double multiplier) |
static double | dB_to_multiplier (double dB) |
static double | fader_to_dB (int level, int maxLevel, FaderType type) |
static int | dB_to_fader (double dB, int maxFaderLevel, FaderType type) |
static double | fader_to_multiplier (int level, int maxLevel, FaderType type) |
static int | multiplier_to_fader (double multiplier, int maxFaderLevel, FaderType type) |
static int | multiplier_to_preview (double multiplier, int levels) |
static double | preview_to_multiplier (int level, int levels) |
Static Public Attributes | |
static const double | DB_FLOOR = -1000. |
Detailed Description
AudioLevel converts audio sample levels between various scales:
- dB values (-inf -> 0dB)
- floating-point values (-1.0 -> 1.0) such as used for a multiplier for gain or in floating-point WAV files
- integer values intended to correspond to pixels on a fader or vu level scale.
Definition at line 34 of file AudioLevel.h.
Member Enumeration Documentation
Enumerator | |
---|---|
ShortFader | |
LongFader | |
IEC268Meter | |
IEC268LongMeter | |
PreviewLevel |
Definition at line 40 of file AudioLevel.h.
Member Function Documentation
|
static |
Definition at line 50 of file AudioLevel.cpp.
|
static |
Definition at line 59 of file AudioLevel.cpp.
|
static |
Definition at line 113 of file AudioLevel.cpp.
References iec_dB_to_fader(), iec_fader_to_dB(), FaderDescription::maxDb, FaderDescription::minDb, and FaderDescription::zeroPoint.
|
static |
Definition at line 150 of file AudioLevel.cpp.
References iec_dB_to_fader(), FaderDescription::maxDb, FaderDescription::minDb, and FaderDescription::zeroPoint.
|
static |
Definition at line 204 of file AudioLevel.cpp.
|
static |
Definition at line 211 of file AudioLevel.cpp.
|
static |
Definition at line 220 of file AudioLevel.cpp.
|
static |
Definition at line 227 of file AudioLevel.cpp.
Member Data Documentation
|
static |
Definition at line 38 of file AudioLevel.h.
The documentation for this class was generated from the following files:
Generated by 1.8.11