mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 16:48:44 +02:00
Compressor.cpp: Allow higher-precision 'Ratio'
This enhancement allows the User to set 'Ratio' to a between 1.1 and 10, with 0.1 precision. Formerly, the minimum was 1.5, and the smallest increment was 0.5.
This commit is contained in:
parent
0569572d1b
commit
f8a439f389
@ -57,7 +57,7 @@ enum
|
||||
// Name Type Key Def Min Max Scale
|
||||
Param( Threshold, double, XO("Threshold"), -12.0, -60.0, -1.0, 1 );
|
||||
Param( NoiseFloor, double, XO("NoiseFloor"), -40.0, -80.0, -20.0, 5 );
|
||||
Param( Ratio, double, XO("Ratio"), 2.0, 1.5, 10.0, 2 );
|
||||
Param( Ratio, double, XO("Ratio"), 2.0, 1.1, 10.0, 10 );
|
||||
Param( AttackTime, double, XO("AttackTime"), 0.2, 0.1, 5.0, 100 );
|
||||
Param( ReleaseTime, double, XO("ReleaseTime"), 1.0, 1.0, 30.0, 10 );
|
||||
Param( Normalize, bool, XO("Normalize"), true, false, true, 1 );
|
||||
@ -633,7 +633,7 @@ void EffectCompressor::UpdateUI()
|
||||
mNoiseFloorText->SetLabel(wxString::Format(_("%3d dB"), (int) mNoiseFloorDB));
|
||||
mNoiseFloorText->SetName(mNoiseFloorText->GetLabel()); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
|
||||
|
||||
if (mRatioSlider->GetValue() % 2 == 0) {
|
||||
if (mRatioSlider->GetValue() % 10 == 0) {
|
||||
mRatioLabel->SetName(wxString::Format(_("Ratio %.0f to 1"), mRatio));
|
||||
/* i18n-hint: Unless your language has a different convention for ratios,
|
||||
* like 8:1, leave as is.*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user