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

Function TextToSliderValue

src/effects/DynamicRangeProcessorEditor.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120auto TextToSliderValue(ExtendedCompressorParameter& setting)
121{
122 const auto unscaled = setting.attributes.exponentialSlider ?
123 MapLogarithmically(
124 setting.param->SliderMin(),
125 setting.param->SliderMax(), setting.value) :
126 setting.value;
127 return unscaled * setting.param->TextToSlider();
128}
129} // namespace
130
131DynamicRangeProcessorEditor::DynamicRangeProcessorEditor(

Callers 2

AddTextboxAndSliderMethod · 0.85
UpdateUIMethod · 0.85

Calls 4

MapLogarithmicallyFunction · 0.85
SliderMinMethod · 0.45
SliderMaxMethod · 0.45
TextToSliderMethod · 0.45

Tested by

no test coverage detected