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

Function SliderToTextValue

src/effects/DynamicRangeProcessorEditor.cpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110auto SliderToTextValue(double value, const ExtendedCompressorParameter& setting)
111{
112 const auto scaled = value / setting.param->TextToSlider();
113 return setting.attributes.exponentialSlider ?
114 MapExponentially(
115 setting.param->SliderMin(), setting.param->SliderMax(),
116 scaled) :
117 scaled;
118}
119
120auto TextToSliderValue(ExtendedCompressorParameter& setting)
121{

Callers 1

AddTextboxAndSliderMethod · 0.85

Calls 4

MapExponentiallyFunction · 0.85
TextToSliderMethod · 0.45
SliderMinMethod · 0.45
SliderMaxMethod · 0.45

Tested by

no test coverage detected