|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Gain in decibels, and the level taper for an amplifier's Level control. More...
Gain in decibels, and the level taper for an amplifier's Level control.
Stateless. level_gain() is the taper the Vca applies to its Level port: exponential over a range in dB, as a VCA's exponential control input is, with a true zero at 0 and unity at 1. Exponential control for loudness follows Moog 1965 pp. 203-204 and the SSI2164's -33 mV/dB input.
Definition in file gain.hpp.
#include <cmath>Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::dsp |
| The audio stack. | |
| namespace | sbl::dsp::math |
| Math for the audio stack. | |
Functions | |
| float | sbl::dsp::math::db_to_gain (float db) |
| Amplitude gain for a level in dB: 10^(db / 20). | |
| float | sbl::dsp::math::gain_to_db (float gain) |
| Level in dB for an amplitude gain. | |
| float | sbl::dsp::math::level_gain (float level, float range_db) |
| The level taper: a level in [0, 1] to a gain. | |
Variables | |
| constexpr float | sbl::dsp::math::DB_PER_DOUBLING = 6.0206f |