Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

Rosegarden::AudioLevel Class Reference

#include <AudioLevel.h>

List of all members.

Detailed Description

We need to represent audio levels in three different ways: as dB values; as a floating-point multiplier for gain; and as an integer on a scale for fader position and vu level. This class does the necessary conversions.

Definition at line 28 of file AudioLevel.h.

Public Types

enum  FaderType {
  ShortFader = 0, LongFader = 1, IEC268Meter = 2, IEC268LongMeter = 3,
  PreviewLevel = 4

Static Public Member Functions

static int dB_to_fader (float dB, int maxFaderLevel, FaderType type)
static float dB_to_multiplier (float dB)
static float fader_to_dB (int level, int maxLevel, FaderType type)
static float fader_to_multiplier (int level, int maxLevel, FaderType type)
static float multiplier_to_dB (float multiplier)
static int multiplier_to_fader (float multiplier, int maxFaderLevel, FaderType type)
static int multiplier_to_preview (float multiplier, int levels)
static float preview_to_multiplier (int level, int levels)

Static Public Attributes

static const float DB_FLOOR = -1000.0

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index