Bugzilla – Bug 85
Minimum and maximum frequency display in Spectrograms preferences don't work for spectrum log (f) view
Last modified: 2018-08-20 11:45:56 UTC
This looks like an incomplete 'feature'. We have, internally, mLogMinFreq and mLogMaxFreq which the various log spectrum tracks obey, that is we zoom in on one and the others zoom in, which is good. We have in TrackArtist::UpdatePrefs() mLogMaxFreq = gPrefs->Read(wxT("/SpectrumLog/MaxFreq"), -1); mLogMinFreq = gPrefs->Read(wxT("/SpectrumLog/MinFreq"), -1); but from what I see these never get written to prefs, so aren't there to read. And perhaps should be "/Spectrum/LogMaxFreq" etc So this needs some thought. * Should we have different (frequency) zooms possible in the UI for log and lin spectrums like we do now? I think we should. * Should we remember those seperate zoom levels in project files? We don't now (?), but it would perhaps be useful. People would be back to where they were when they reloaded a project. * Should we remember those seperate zoom levels in Audacity.cfg? I'm not sure about that. It would be useful to some but not others. I'm thinking writing back the zoom levels used, rather than those set in the prefs. * Should we have prefs for those (possibly) different log zooms in Spectrograms prefs? I'm not sure about that. We could have them in Audacity.cfg but not exposed to the user in prefs (I guess). * Simple solution: Obey the pref for Log view initially, then treat seperatly for a session. There are a lot of options here. Martyn
(In reply to comment #1) Short-circuited that unfinished feature, see commit r11178. I've made 'Spectrum (log F)' follow the Spectrograms pref - it seeemd easy and logical.