Audacity 3.2.0
Functions
DanielRudrich::anonymous_namespace{GainReductionComputer.cpp} Namespace Reference

Functions

float getSlope (float ratio)
 
float getRatio (float slope)
 

Function Documentation

◆ getRatio()

float DanielRudrich::anonymous_namespace{GainReductionComputer.cpp}::getRatio ( float  slope)

Definition at line 26 of file GainReductionComputer.cpp.

26{ return 1 / (slope + 1); }

Referenced by DanielRudrich::GainReductionComputer::getCharacteristicSample().

Here is the caller graph for this function:

◆ getSlope()

float DanielRudrich::anonymous_namespace{GainReductionComputer.cpp}::getSlope ( float  ratio)

Definition at line 25 of file GainReductionComputer.cpp.

25{ return 1 / ratio - 1; }

Referenced by DanielRudrich::GainReductionComputer::getCharacteristicSample(), and DanielRudrich::GainReductionComputer::setRatio().

Here is the caller graph for this function: