Issue: Closing the Preferences dialog resets project sample rate to default

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
jpr
Posts: 16
Joined: Fri Sep 07, 2018 6:56 pm
Operating System: Linux Debian

Issue: Closing the Preferences dialog resets project sample rate to default

Post by jpr » Fri Sep 07, 2018 7:09 pm

Linux: openSUSE Tumbleweed
Audacity: 2.2.2
Installed from distribution packages (package version 2.2.2-1.6)

To reproduce:
  • Open Audacity
  • Set project sample rate (bottom-left corner) to something other than the default rate, e.g. 16000 Hz
  • Either:
    • Create a new track
    • Switch the track's visualization to Spectrogram
    • Open "Spectrogram Settings" from the track's popup menu
    • Click OK
  • Or
    • Click Edit->Preferences
    • Click OK
  • The project sample rate is now set to the default sample rate specified in the settings.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by steve » Fri Sep 07, 2018 8:24 pm

Yes, that is intentional. All of the Preference settings are supposed to be applied immediately, though there are still a couple that don't take effect until Audacity is restarted.

The way you describe it, the behaviour does sound a bit surprising, but looking at it another way; If you open Preferences and, say, change the Export options, wouldn't you expect them to change immediately?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jpr
Posts: 16
Joined: Fri Sep 07, 2018 6:56 pm
Operating System: Linux Debian

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by jpr » Fri Sep 07, 2018 8:51 pm

If you open Preferences and, say, change the Export options, wouldn't you expect them to change immediately?
Yes, but only because I explicitly changed the Export options. Simply opening and then closing the preferences dialog should not change the current project's sample rate in my view. Same goes for changing any other setting without navigating to the Quality settings page.

This is especially surprising when editing the Spectrogram settings for a track because there is not even a way to access the default project rate settings from that dialog. This was where I first encountered the issue, and I spent quite some time wondering why playback sounded differently after editing in Spectrogram mode, until I figured out that Audacity had silently reduced the project's sample rate from 96 kHz to the default of 44.1 kHz when I changed the track's spectrogram settings.

Finally, the documentation for Quality Settings states: "This panel sets the Default Sample Rate and Default Sample Format (bit depth) which will be used each time Audacity is launched, or each time a new project window or track is opened.", which sounds like a more reasonable behavior and probably also the intended one.

jpr
Posts: 16
Joined: Fri Sep 07, 2018 6:56 pm
Operating System: Linux Debian

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by jpr » Fri Sep 07, 2018 8:56 pm

P.S. I see now that the behavior is indeed documented (at the page I linked to):
If you set the project rate, using the Project Rate dropdown at the left of the Selection Toolbar to something other than the default rate, then open Preferences and click OK (without necessarily going to the Quality section), the project rate will immediately change back to the default rate.
Still, I find the behavior very surprising for Spectrogram settings.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by steve » Fri Sep 07, 2018 9:16 pm

Well yes there's a few strange things about the Spectrogram settings, but are you aware that you can set them per track from the track context menu?
https://manual.audacityteam.org/man/aud ... #spgramset
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jpr
Posts: 16
Joined: Fri Sep 07, 2018 6:56 pm
Operating System: Linux Debian

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by jpr » Sat Sep 08, 2018 6:21 am

are you aware that you can set them per track from the track context menu?
Sorry if my wording was unclear in this regard -- that's what I did, and doing so resets the project's sample rate as described.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by steve » Sat Sep 08, 2018 11:07 am

Sorry, I'm not sure what you mean. Are you talking about sample rates or spectrogram settings?
If you set custom spectrogram settings for a specific track, those settings are no longer affected by the settings in Preferences.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jpr
Posts: 16
Joined: Fri Sep 07, 2018 6:56 pm
Operating System: Linux Debian

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by jpr » Sun Sep 09, 2018 2:27 pm

Sorry again if I was being unclear. Performing the following sequence of actions will reset the value of the "Project Rate (Hz)" combobox in the bottom-left corner of the Audacity window to the value specified in "Edit -> Preferences -> Quality -> Sampling -> Default Sample Rate".
  • Open the track context menu of an audio track by left-clicking on the downward pointing triangle next to the track name
  • Click "Spectrogram"
  • Open the track context menu again
  • Click "Spectrogram Settings..."
  • In the window that appears, click OK

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by waxcylinder » Mon Sep 10, 2018 11:53 am

jpr wrote:
Sun Sep 09, 2018 2:27 pm
Sorry again if I was being unclear. Performing the following sequence of actions will reset the value of the "Project Rate (Hz)" combobox in the bottom-left corner of the Audacity window to the value specified in "Edit -> Preferences -> Quality -> Sampling -> Default Sample Rate".
  • Open the track context menu of an audio track by left-clicking on the downward pointing triangle next to the track name
  • Click "Spectrogram"
  • Open the track context menu again
  • Click "Spectrogram Settings..."
  • In the window that appears, click OK
Ooh - so it does - I just tested it on the released 2.2.2 and the latest alpha for the upcoming 2.3.0 - I'm just gonna log that in our Bugzilla database.

Good catch jpr 8-)

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Issue: Closing the Preferences dialog resets project sample rate to default

Post by waxcylinder » Mon Sep 10, 2018 12:06 pm

________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Post Reply