mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-20 23:51:18 +01:00
Rearrange Spectrograms preferences page and change some names...
Three boxes called Scale, Colors and Algorithm, and the spectral selection checkbox ERB is now ERBS STFT is now Frequencies Shortened other algorithm name to Pitch(EAC)
This commit is contained in:
@@ -175,7 +175,7 @@ const wxArrayString &SpectrogramSettings::GetScaleNames()
|
||||
/* i18n-hint: The name of a frequency scale in psychoacoustics, named for Heinrich Barkhausen */
|
||||
theArray.Add(_("Bark"));
|
||||
/* i18n-hint: The name of a frequency scale in psychoacoustics, abbreviates Equivalent Rectangular Bandwidth */
|
||||
theArray.Add(_("ERB"));
|
||||
theArray.Add(_("ERBS"));
|
||||
/* i18n-hint: A mathematical formula where f stands for frequency */
|
||||
theArray.Add(_("1 / f"));
|
||||
}
|
||||
@@ -190,8 +190,8 @@ const wxArrayString &SpectrogramSettings::GetAlgorithmNames()
|
||||
|
||||
if (theArray.IsEmpty()) {
|
||||
// Keep in correspondence with enum SpectrogramSettings::Algorithm:
|
||||
theArray.Add(_("STFT"));
|
||||
theArray.Add(_("Pitch (enhanced autocorrelation)"));
|
||||
theArray.Add(_("Frequencies"));
|
||||
theArray.Add(_("Pitch (EAC)"));
|
||||
}
|
||||
|
||||
return theArray;
|
||||
|
||||
@@ -154,16 +154,72 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.SetBorder(2);
|
||||
|
||||
// S.StartStatic(_("Track Settings"));
|
||||
{
|
||||
// {
|
||||
|
||||
mDefaultsCheckbox = 0;
|
||||
if (mWt) {
|
||||
/* i18n-hint: use is a verb */
|
||||
mDefaultsCheckbox = S.Id(ID_DEFAULTS).TieCheckBox(_("Use Preferences"), mDefaulted);
|
||||
}
|
||||
S.StartStatic(_("FFT Window"));
|
||||
|
||||
S.StartStatic(_("Scale"));
|
||||
{
|
||||
S.StartTwoColumn();
|
||||
{
|
||||
S.Id(ID_SCALE).TieChoice(_("S&cale") + wxString(wxT(":")),
|
||||
*(int*)&mTempSettings.scaleType,
|
||||
&mScaleChoices);
|
||||
|
||||
mMinFreq =
|
||||
S.Id(ID_MINIMUM).TieNumericTextBox(_("Mi&nimum Frequency (Hz):"),
|
||||
mTempSettings.minFreq,
|
||||
12);
|
||||
|
||||
mMaxFreq =
|
||||
S.Id(ID_MAXIMUM).TieNumericTextBox(_("Ma&ximum Frequency (Hz):"),
|
||||
mTempSettings.maxFreq,
|
||||
12);
|
||||
}
|
||||
S.EndTwoColumn();
|
||||
}
|
||||
S.EndStatic();
|
||||
|
||||
S.StartStatic(_("Colors"));
|
||||
{
|
||||
S.StartTwoColumn();
|
||||
{
|
||||
mGain =
|
||||
S.Id(ID_GAIN).TieNumericTextBox(_("&Gain (dB):"),
|
||||
mTempSettings.gain,
|
||||
8);
|
||||
|
||||
mRange =
|
||||
S.Id(ID_RANGE).TieNumericTextBox(_("&Range (dB):"),
|
||||
mTempSettings.range,
|
||||
8);
|
||||
|
||||
mFrequencyGain =
|
||||
S.Id(ID_FREQUENCY_GAIN).TieNumericTextBox(_("Frequency g&ain (dB/dec):"),
|
||||
mTempSettings.frequencyGain,
|
||||
4);
|
||||
}
|
||||
|
||||
S.Id(ID_GRAYSCALE).TieCheckBox(_("S&how the spectrum using grayscale colors"),
|
||||
mTempSettings.isGrayscale);
|
||||
|
||||
S.EndTwoColumn();
|
||||
}
|
||||
S.EndStatic();
|
||||
|
||||
S.StartStatic(_("Algorithm"));
|
||||
{
|
||||
S.StartMultiColumn(2);
|
||||
{
|
||||
mAlgorithmChoice =
|
||||
S.Id(ID_ALGORITHM).TieChoice(_("A&lgorithm") + wxString(wxT(":")),
|
||||
*(int*)&mTempSettings.algorithm,
|
||||
&mAlgorithmChoices);
|
||||
|
||||
S.Id(ID_WINDOW_SIZE).TieChoice(_("Window &size:"),
|
||||
mTempSettings.windowSize,
|
||||
&mSizeChoices);
|
||||
@@ -186,49 +242,6 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
}
|
||||
S.EndStatic();
|
||||
|
||||
S.StartStatic(_("Display"));
|
||||
{
|
||||
S.StartTwoColumn();
|
||||
{
|
||||
S.Id(ID_SCALE).TieChoice(_("S&cale") + wxString(wxT(":")),
|
||||
*(int*)&mTempSettings.scaleType,
|
||||
&mScaleChoices);
|
||||
|
||||
mAlgorithmChoice =
|
||||
S.Id(ID_ALGORITHM).TieChoice(_("Algorithm") + wxString(wxT(":")),
|
||||
*(int*)&mTempSettings.algorithm,
|
||||
&mAlgorithmChoices);
|
||||
|
||||
mMinFreq =
|
||||
S.Id(ID_MINIMUM).TieNumericTextBox(_("Mi&nimum Frequency (Hz):"),
|
||||
mTempSettings.minFreq,
|
||||
12);
|
||||
|
||||
mMaxFreq =
|
||||
S.Id(ID_MAXIMUM).TieNumericTextBox(_("Ma&ximum Frequency (Hz):"),
|
||||
mTempSettings.maxFreq,
|
||||
12);
|
||||
|
||||
mGain =
|
||||
S.Id(ID_GAIN).TieNumericTextBox(_("&Gain (dB):"),
|
||||
mTempSettings.gain,
|
||||
8);
|
||||
|
||||
mRange =
|
||||
S.Id(ID_RANGE).TieNumericTextBox(_("&Range (dB):"),
|
||||
mTempSettings.range,
|
||||
8);
|
||||
|
||||
mFrequencyGain =
|
||||
S.Id(ID_FREQUENCY_GAIN).TieNumericTextBox(_("Frequency g&ain (dB/dec):"),
|
||||
mTempSettings.frequencyGain,
|
||||
4);
|
||||
}
|
||||
S.EndTwoColumn();
|
||||
|
||||
S.Id(ID_GRAYSCALE).TieCheckBox(_("S&how the spectrum using grayscale colors"),
|
||||
mTempSettings.isGrayscale);
|
||||
|
||||
#ifndef SPECTRAL_SELECTION_GLOBAL_SWITCH
|
||||
S.Id(ID_SPECTRAL_SELECTION).TieCheckBox(_("Ena&ble Spectral Selection"),
|
||||
mTempSettings.spectralSelection);
|
||||
@@ -238,8 +251,6 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.TieCheckBox(_("Show a grid along the &Y-axis"),
|
||||
mTempSettings.fftYGrid);
|
||||
#endif //EXPERIMENTAL_FFT_Y_GRID
|
||||
}
|
||||
S.EndStatic();
|
||||
|
||||
#ifdef EXPERIMENTAL_FIND_NOTES
|
||||
/* i18n-hint: FFT stands for Fast Fourier Transform and probably shouldn't be translated*/
|
||||
@@ -267,7 +278,6 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
}
|
||||
S.EndStatic();
|
||||
#endif //EXPERIMENTAL_FIND_NOTES
|
||||
}
|
||||
// S.EndStatic();
|
||||
|
||||
#ifdef SPECTRAL_SELECTION_GLOBAL_SWITCH
|
||||
|
||||
Reference in New Issue
Block a user