Ardour  9.0-pre0-582-g084a23a80d
dB.h File Reference
#include <limits>
#include "pbd/fastlog.h"
Include dependency graph for dB.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GAIN_COEFF_ZERO   0.f
 
#define GAIN_COEFF_SMALL   0.0000001f
 
#define GAIN_COEFF_UNITY   1.f
 

Functions

static float dB_to_coefficient (float dB)
 
static float fast_coefficient_to_dB (float coeff)
 
static float accurate_coefficient_to_dB (float coeff)
 
static double dB_coeff_step (double max_coeff)
 

Variables

double zero_db_as_fraction
 

Macro Definition Documentation

◆ GAIN_COEFF_SMALL

#define GAIN_COEFF_SMALL   0.0000001f

Definition at line 28 of file dB.h.

◆ GAIN_COEFF_UNITY

#define GAIN_COEFF_UNITY   1.f

Definition at line 29 of file dB.h.

◆ GAIN_COEFF_ZERO

#define GAIN_COEFF_ZERO   0.f

Definition at line 27 of file dB.h.

Function Documentation

◆ accurate_coefficient_to_dB()

static float accurate_coefficient_to_dB ( float  coeff)
inlinestatic

Definition at line 39 of file dB.h.

◆ dB_coeff_step()

static double dB_coeff_step ( double  max_coeff)
inlinestatic

Definition at line 44 of file dB.h.

◆ dB_to_coefficient()

static float dB_to_coefficient ( float  dB)
inlinestatic

Definition at line 31 of file dB.h.

◆ fast_coefficient_to_dB()

static float fast_coefficient_to_dB ( float  coeff)
inlinestatic

Definition at line 35 of file dB.h.

Variable Documentation

◆ zero_db_as_fraction

double zero_db_as_fraction
extern