Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 465 - Increase default effects preview and preview before cut
Increase default effects preview and preview before cut
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Audio IO
1.3.15
Per OS All
: P4 Enhancement
Assigned To: Default Assignee for New Bugs
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-19 15:05 UTC by Gale Andrews
Modified: 2018-08-20 11:51 UTC (History)
4 users (show)

See Also:
Steps To Reproduce:
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00


Attachments
increases default effects preview and preview before cut (943 bytes, patch)
2012-01-19 15:05 UTC, Gale Andrews
Details | Diff
Corrected patch that should make new prefs work without opening prefs first (1.99 KB, patch)
2012-01-20 16:24 UTC, Gale Andrews
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gale Andrews 2012-01-19 15:05:05 UTC
Created attachment 223 [details]
increases default effects preview and preview before cut

Effects preview is often thought to be too short to accurately judge an effect.
Because many audio editors simply preview until stopped, users may not think
there is a preference to control preview length, so complain. Those that know
it is a Preference have to change Preferences every time they initialise them.  

Preview before cut is the same length as preview after cut (1 second), but
"preview before" is arguably more important to judge the cut, and 1 second is
often insufficient. 

Patch sets effects preview to 6 seconds and preview before cut to 2 seconds.
Tested OK on Win 7 that it works and initialises prefs to desired values.
Comment 1 Steve Daulton 2012-01-20 11:01:06 UTC
(In reply to comment #0)
I've applied the patch on Linux, and deleted audacity.cfg from ~/.audacity-data

After building and installing, the new preview lengths do *not* take effect.
To make the new settings "active" it is necessary to open and close Preferences.
Comment 2 Gale Andrews 2012-01-20 16:24:02 UTC
Created attachment 227 [details]
Corrected patch that should make new prefs work without opening prefs first
Comment 3 Gale Andrews 2012-01-20 16:35:59 UTC
(In reply to comment #1)
> After building and installing, the new preview lengths do *not* take effect.
> To make the new settings "active" it is necessary to open and close
> Preferences.
Thanks for testing. Yes. same on Windows - I opened prefs before testing...

So I searched the entire code for "AudioIO/EffectsPreviewLen" and "AudioIO/CutPreviewBeforeLen".

In the attached updated patch I changed the values in ControlToolBar.cpp: 

gPrefs->Read(wxT("/AudioIO/CutPreviewBeforeLen"), &beforeLen, 2.0); 

and Effect.cpp:

double previewLen = 6.0;

which does now (on Win 7) make the changes work on initialised prefs before you open the Preferences window. Also tested changing to new values which works for me.
Comment 4 Vaughan Johnson 2012-01-24 21:23:47 UTC
Patch applied & committed.
Comment 5 Gale Andrews 2012-02-02 01:49:26 UTC
Thanks, Vaughan. Bill confirmed OK on Mac for completeness, so RESOLVED - FIXED.