Skip to content

Commit

Permalink
fix: show 2 decimal places in quality factor
Browse files Browse the repository at this point in the history
  • Loading branch information
mttbernardini committed May 7, 2024
1 parent 9998900 commit d3c428b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrequalizerProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static juce::AudioProcessorValueTreeState::ParameterLayout createParameterLayout
defaults [i].quality,
juce::String(),
juce::AudioProcessorParameter::genericParameter,
[](float value, int) { return juce::String (value, 1); },
[](float value, int) { return juce::String (value, 2); },
[](const juce::String& text) { return text.getFloatValue(); });

auto gainParameter = std::make_unique<juce::AudioParameterFloat> (FrequalizerAudioProcessor::getGainParamName (i),
Expand Down

0 comments on commit d3c428b

Please sign in to comment.