25 _log_meter (
float power,
double lower_db,
double upper_db,
double non_linearity)
27 return (power < lower_db ? 0.0 : pow((power-lower_db)/(upper_db-lower_db), non_linearity));
54 }
else if (db < -60.0f) {
55 def = (db + 70.0f) * 0.25f;
56 }
else if (db < -50.0f) {
57 def = (db + 60.0f) * 0.5f + 2.5f;
58 }
else if (db < -40.0f) {
59 def = (db + 50.0f) * 0.75f + 7.5f;
60 }
else if (db < -30.0f) {
61 def = (db + 40.0f) * 1.5f + 15.0f;
62 }
else if (db < -20.0f) {
63 def = (db + 30.0f) * 2.0f + 30.0f;
64 }
else if (db < 6.0f) {
65 def = (db + 20.0f) * 2.5f + 50.0f;
85 }
else if (db < -60.0f) {
86 def = (db + 70.0f) * 0.25f;
87 }
else if (db < -50.0f) {
88 def = (db + 60.0f) * 0.5f + 2.5f;
89 }
else if (db < -40.0f) {
90 def = (db + 50.0f) * 0.75f + 7.5f;
91 }
else if (db < -30.0f) {
92 def = (db + 40.0f) * 1.5f + 15.0f;
93 }
else if (db < -20.0f) {
94 def = (db + 30.0f) * 2.0f + 30.0f;
95 }
else if (db < 0.0f) {
96 def = (db + 20.0f) * 2.5f + 50.0f;
110 const float rv = (db + 32.0f) / 28.0f;
123 rv = sqrtf (sqrtf (2.3676f * rv)) - 0.1803f;
127 return (rv > 0 ? rv : 0.0);
137 const float rv = (db + 60.0f) / 54.0f;
150 if (rv > 1.0)
return 1.0;
161 const float rv = (db + 45.0f) / (krange + 45.0f);
static float dB_to_coefficient(float dB)
static float log_meter0dB(float db)
static float meter_deflect_nordic(float)
static float _log_meter(float power, double lower_db, double upper_db, double non_linearity)
static float alt_log_meter(float power)
static float meter_deflect_vu(float)
static float log_meter(float db)
static float meter_deflect_k(float, float)
static float meter_deflect_ppm(float)
static float meter_deflect_din(float)