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

Audacity Bugzilla



Bug 2583 - Incorrect split placement after paste
Incorrect split placement after paste
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Other
unspecified
All All
: P3 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-11-12 14:17 UTC by Steve Daulton
Modified: 2021-01-28 15:27 UTC (History)
7 users (show)

See Also:
Steps To Reproduce:
There are many variations. This is just one example. 1. Generate a 30 second chirp. 2. Create a split line at 10 seconds 3. Copy one second of audio 4. Double click on the first clip to select it 5. "Ctrl + V" (paste) 6a. Expected result: The first clip to be replaced by the pasted audio, leaving a split line at 1.0 seconds. 6b. Actual result: The first clip is replaced by the selected audio, leaving a split line at 10.0 seconds. 7. Undo the paste 8. Add a second split at 18 seconds 9. Select the first clip and paste. 10. Observe there are now split lines at 9.0 and 10.0 seconds. The 9.0 second split line is probably correct because it is 12 seconds from the end, but it looks very odd because the split at 10 seconds is wrong. PRL: Another example with generators in stead of pasting. 1) Generate a 30 second chirp 2) split about halfway 3) double-click the left clip 4) Generate > Chirp... 5) Change duration to 1 s less before OK Observe the cutline does not move leftward as one would expect. PRL: Other case with generators, not pasting 1) Generate some sound 2) Split near 15 s 3) Double click left clip 4) Open another generator dialog again (Test Silence as well as others! Silence does not in fact share the same code path) 5) Change duration either longer or shorter 6) OK Observe the clip boundary does not move as expected Try it also with clip boundaries within the selection at step 6
Release Note:
Group: Splits *When pasting audio into a track containing split lines, the split lines may move to unpredictable places.
First Git SHA:
Group: ---
Workaround:
None
Closed: 2021-01-28 00:00:00
stevethefiddle: Regression+
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Daulton 2020-11-12 14:17:57 UTC
Pasting audio into a track that has splits may cause splits lines in wrong locations. It is expected that split lines remain in the same place relative to the audio samples.

This appears to have worked correctly in Audacity 1.3.6 and possibly some later versions, though it has been broken for a long time.
Comment 1 Peter Sampson 2020-11-16 07:02:03 UTC
Worked in 1.3.6 fails in 1.3.10  (I don't have the intervening versions)
Comment 2 Paul L 2021-01-23 19:40:18 UTC
Fixed at

0df8fbcc74e946ef5806ca7376b689119edc982f
Comment 3 Peter Sampson 2021-01-24 11:15:09 UTC
(In reply to Paul L from comment #2)
Testing on W10 with Audacity 3.0.0 4b07fba

This looks to be properly fixed on Windows - now behaves as it should.
Comment 4 Peter Sampson 2021-01-24 11:17:36 UTC
(In reply to Paul L from comment #2)
Testing on macOS 11.1 Bug Sur with Audacity 3.0.0 4b07fba

This looks to be properly fixed on mac too - now behaves as it should.
Comment 5 Paul L 2021-01-25 17:12:39 UTC
Reopening because of unfixed similar case with generators.  See Steps.
Comment 6 Paul L 2021-01-25 17:12:57 UTC
Fix again at 197ebc299438923be9f3ba83bc1714e4349e1a55
Comment 7 Peter Sampson 2021-01-25 17:52:45 UTC
Tested on W10 with Audacity 3.0.0 197ebc2

This now tests OK on
a) original steps
b) Paul's first additional steps
c) Paul's second additional steps
Comment 8 Peter Sampson 2021-01-25 17:55:41 UTC
(In reply to Paul L from comment #6)
Tested on macOS 11.1 Big Sur with Audacity 3.0.0 197ebc2

This now tests OK on Mac:
a) original steps
b) Paul's first additional steps
c) Paul's second additional steps
Comment 9 Peter Sampson 2021-01-28 15:27:50 UTC
Examinininfg the commit for this shows that it is clearly platform independent
https://github.com/audacity/audacity/commit/197ebc299438923be9f3ba83bc1714e4349e1a55

So as this tests OK on Win and Mac I shall close this as FIXED