MCPcopy Create free account
hub / github.com/audacity/audacity / MapExponentially

Function MapExponentially

src/effects/DynamicRangeProcessorEditor.cpp:81–84  ·  view source on GitHub ↗

Assumes x to be in [0, 1]

Source from the content-addressed store, hash-verified

79
80// Assumes x to be in [0, 1]
81auto MapExponentially(double x)
82{
83 return (std::exp(C * x) - 1) / (std::exp(C) - 1.);
84}
85
86auto MapExponentially(double min, double max, double x)
87{

Callers 1

SliderToTextValueFunction · 0.85

Calls 1

roundFunction · 0.85

Tested by

no test coverage detected