mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 08:33:36 +02:00
Don't supply "Waveform (dB)" to the 'VIEW property in Nyquist...
... consistently with the drop-down menu, and now the Tracks Preferences too.
Only distinguish Waveform and Spectrogram and nil.
See also commit e3d9fd9
.
This commit is contained in:
@@ -1095,13 +1095,12 @@ bool NyquistEffect::ProcessOne()
|
||||
[&](const WaveTrack *wt) {
|
||||
type = wxT("wave");
|
||||
spectralEditp = mCurTrack[0]->GetSpectrogramSettings().SpectralSelectionEnabled()? wxT("T") : wxT("NIL");
|
||||
// To do: accommodate split views
|
||||
auto displays = WaveTrackView::Get( *wt ).GetDisplays();
|
||||
auto format = [&]( decltype(displays[0]) display ){
|
||||
switch ( display )
|
||||
{
|
||||
case Waveform:
|
||||
return (mCurTrack[0]->GetWaveformSettings().scaleType == 0) ? wxT("\"Waveform\"") : wxT("\"Waveform (dB)\"");
|
||||
return wxT("\"Waveform\"");
|
||||
case Spectrum:
|
||||
return wxT("\"Spectrogram\"");
|
||||
default: return wxT("NIL");
|
||||
|
Reference in New Issue
Block a user