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

Audacity Bugzilla



Bug 2687 - Compressor with selection to end of track can cause corruption
Compressor with selection to end of track can cause corruption
Status: RESOLVED QUICKFIXED
Product: Audacity
Classification: Unclassified
Component: Built-in FX
3.0.0
All All
: P1 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-03-05 10:09 UTC by Peter Sampson
Modified: 2021-03-06 14:10 UTC (History)
8 users (show)

See Also:
Steps To Reproduce:
1) Reset Configuration 2) Generate Chirp (default 30 secs) 3) select from 10 seconds to end of chirp 5) Effect>Compressor (with default settings) 6) Observe: compression not applied and odd result (see attachment)
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2021-03-06 00:00:00
james.k.crook: Must‑Test‑All‑OS-
petersampsonaudacity: Quickfix‑Requested+
petersampsonaudacity: Regression+
petersampsonaudacity: Test‑OK‑Win+
james.k.crook: Test‑OK‑Win+


Attachments
Compressor corruption (31.68 KB, image/png)
2021-03-05 10:09 UTC, Peter Sampson
Details
More compreesor corruption (51.26 KB, image/png)
2021-03-05 13:38 UTC, Peter Sampson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sampson 2021-03-05 10:09:44 UTC
Created attachment 1111 [details]
Compressor corruption

With a selection made from part way through a track to the end of a track, when Compressor is used the result is not compressed.

1) in my use case with the steps I consistently get (on both Win and Mac) the odd result in the attachment.

2) When I select from 15 secs to end I usually get a little short bit of much reduced in amplitude audio starting at 15 secs - with the remainder of the audio unchanged

3) If I select from 20 secs to end - the audio appears untouched by Compressor

4) If I select the whole track then the Compressor is applied properly.


a) This is a regression against 2.4.2 - plus, 
b)we cannot corrupt users' audio data like this.  It may be obvious visually with a test case chirp, but probably less obvious on normal audio.  Hence this gets P1 status.
Comment 1 Peter Sampson 2021-03-05 10:35:26 UTC
Cliff reported by email:
>It only happens when using the default options. 
>Using Compression based on Peaks it works normally. Using Mojave.

On W10 I still get the same 10-30 second corruption when using Compression based on Peaks
Comment 2 David Bailes 2021-03-05 11:27:16 UTC
bug appears to have been introduced by this commit:

Author:			Leland Lucius <github@homerow.net>
Date:			1 month ago (30/01/2021 07:16:32)
Commit hash:	618106f1c341bc32afa833286be9cd92870a1f22
Child:			b53d06ed
Parent:			0576d8c9

Bug 619 - TwoPassSimpleMono converts to track bit format between passes, losing quality.
Comment 3 David Bailes 2021-03-05 13:00:20 UTC
I only see the bug if the make up gain check box is checked.
Comment 4 Peter Sampson 2021-03-05 13:38:42 UTC
Created attachment 1112 [details]
More compreesor corruption

I also tested with a real 4m30s minute song

I selected from around 1m 30s to the end and applied Compressor.

It appears to act on c. 1m30s to 3m00s leaving the last minute and a half untouched (see attachment).
Comment 5 Bill Wharrie 2021-03-05 15:36:36 UTC
You don't have to select to the end of the track to see this. Try selecting from 5 sec to 25 sec in a 30-second chirp.
Comment 6 Leland Lucius 2021-03-06 03:28:46 UTC
Fix in:

https://github.com/audacity/audacity/commit/0f830b4
Comment 7 Peter Sampson 2021-03-06 08:22:10 UTC
(In reply to Leland Lucius from comment #6)
Testing on W10 with Audacity 3.0.0 0f830b4

This looks to be fixed OK on Windows

Tested with selections
1) 10-30secs
2) 15-30
3) 20-30
4) 25-30
5) 0-30
6) 10-20
7) 5-25
8) 10-60

all compress as expected
Comment 8 James Crook 2021-03-06 09:34:28 UTC
Confirmed RESOLVED FIXED
Comment 9 Peter Sampson 2021-03-06 11:05:37 UTC
(In reply to Leland Lucius from comment #6)
Testing on macOS 11.2.1 Big Sur with Audacity 3.0.0 0f830b4

This looks to be fixed OK on Mac too

Tested with selections
1) 10-30secs
2) 15-30
3) 20-30
4) 25-30
5) 0-30
6) 10-20
7) 5-25
8) 10-60

all compress as expected