Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play-at-Speed has reverted to being non-dynamic #2149

Closed
Tracked by #2214
petersampsonaudacity opened this issue Nov 16, 2021 · 19 comments · Fixed by #2288
Closed
Tracked by #2214

Play-at-Speed has reverted to being non-dynamic #2149

petersampsonaudacity opened this issue Nov 16, 2021 · 19 comments · Fixed by #2288
Assignees
Labels
bug An error, undesired behaviour, or missed functionality P2 High priority regression Bug is a regression against previous version

Comments

@petersampsonaudacity
Copy link

petersampsonaudacity commented Nov 16, 2021

Describe the bug
The Play-at-Speed has reverted to being non-dynamic.

@JamesCrook upgraded this several releases back (2.3.0) so that it was dynamic - i.e. while PAS was playing moving the slider would cause the play sped to change while PAS was playing.

This is now broken in 3.1.0 and 3.1.1 - and is a regression on 3.0.5.

To Reproduce
Steps to reproduce the behavior:

  1. Get some audio
  2. click the Play-at-Speed button
  3. move the slider during PAS playback
  4. Observe the speed of play does not change.

Expected behavior
Play speed for PAS to change dynamically.

On this page it the Manual it says it does:
https://manual.audacityteam.org/man/play_at_speed_toolbar.html
where it clearly states:

Play-at-Speed playback can be adjusted dynamically with the slider with playback is in progress.

Screenshots
None

Additional information (please complete the following information):

  • OS: Windows 10 - but assume all OS (@SteveDaulton tested on Linux and it fails there too)
  • Version: Audacity 3.1.0/3.1.1

Additional context
Assigned P1 due to the regression.

Originally reported by a user in this Forum post:
https://forum.audacityteam.org/viewtopic.php?f=46&t=121594&p=439466

@petersampsonaudacity petersampsonaudacity added bug An error, undesired behaviour, or missed functionality P1 Highest level priority (ship blocker / must fix) regression Bug is a regression against previous version labels Nov 16, 2021
@petersampsonaudacity
Copy link
Author

I assume this is likely to have been caused by the playback changes made for the new looping in 3.1.0

@petersampsonaudacity
Copy link
Author

Play-at-Speed loop play is also similarly non-dynamic

@petersampsonaudacity petersampsonaudacity changed the title Play-at-speed has reverted to being non-dynamic Play-at-Speed has reverted to being non-dynamic Nov 16, 2021
@DavidBailes
Copy link
Collaborator

Tested with Audacity 3.1.1 on Windows 10, preferences->Playback->"Vari-speed play" checked.

  1. Click the play-at-speed button, then adjusting the speed slider has no immediate effect.
  2. Shift+Click the play-at-speed button, then adjusting the slider has an immediate effect.

Using the commands on the Extra->Play-at-speed submenu:

  1. Play-at-speed, then adjusting the speed slider has no immediate effect.
  2. Play-at-speed once, then adjusting the speed slider has an immediate effect.

Fixing the bug should include fixing the commands on the Extra->Play-at-speed submenu.

@LWinterberg LWinterberg added P2 High priority and removed P1 Highest level priority (ship blocker / must fix) labels Nov 16, 2021
@LWinterberg
Copy link
Member

Downgrading to P2 - has a workaround and doesn't corrupt projects

@petersampsonaudacity
Copy link
Author

Downgrading to P2 - has a workaround and doesn't corrupt projects

But the workaround is not documented - and is hardly "discoverable" ;-)

@AnitaBats AnitaBats added this to the Audacity 3.2 milestone Nov 18, 2021
@AnitaBats AnitaBats added this to To do in Sprint 10 - Enhancements&Bug fixes via automation Dec 1, 2021
@AnitaBats AnitaBats modified the milestones: Audacity 3.2, Audacity 3.1.3 Dec 1, 2021
@Paul-Licameli
Copy link
Collaborator

The solution to this may be more difficult than I thought. Can we reevaluate its priority for 3.1.3? Can it wait for 3.2? I think this is a less discoverable problem.

@petersampsonaudacity
Copy link
Author

I think this is a less discoverable problem.

In fact this was "discovered" and reported (complained about) by a Forum user) - but just the one complaint so far ...

@TheRealAyCe
Copy link

By me, I use play-at-speed a lot. :P

@crsib
Copy link
Contributor

crsib commented Dec 10, 2021

@Tantacrul @AnitaBats

@AnitaBats
Copy link

Will review on the standup

@Paul-Licameli Paul-Licameli moved this from To do to In progress in Sprint 10 - Enhancements&Bug fixes Dec 10, 2021
@Tantacrul
Copy link

Not nice but I don't think it should be a P1. I think we should target the fix for 3.2, assuming @Paul-Licameli does not discover a fast/simple fix.

@Paul-Licameli
Copy link
Collaborator

I'm fixing this issue so that you can move the slider, but also adust loop play bounds, and have all respond as expected. It was not possible to do both things before. So this will be not just a bug fix, but an enhancement.

@Paul-Licameli Paul-Licameli moved this from Review in progress to Reviewer approved in Sprint 10 - Enhancements&Bug fixes Dec 17, 2021
@Paul-Licameli Paul-Licameli moved this from Reviewer approved to Ready for QA in Sprint 10 - Enhancements&Bug fixes Dec 17, 2021
@Paul-Licameli Paul-Licameli mentioned this issue Dec 17, 2021
11 tasks
@Penikov Penikov moved this from Ready for QA to In QA in Sprint 10 - Enhancements&Bug fixes Dec 17, 2021
@petersampsonaudacity
Copy link
Author

petersampsonaudacity commented Dec 17, 2021

Testing on W10 with audacity-win-3.2.0-alpha-20211217+8340b56-64bit and the latest 3.1.3 build.

This now works dynamically on non-looped play with the slider once again acting as the user moves the slider. So the bug as stated looks to be fixed OK

BUT with looped PAS it doesn't observe the bounds of the loop, it usually does appear to play a loop but the loop range extends beyond the end of the loop.

Plus when I move the loop bounds while PAS is active in loop mode then I get little clicks/ticks when I move either of the loop boundaries.

Also if I change the loop region wile PAS is active in loop mode it plays to then end of and slightly beyond the end of the project and does not loop at all.

@petersampsonaudacity
Copy link
Author

petersampsonaudacity commented Dec 18, 2021

@Paul-Licameli
Play-at-Speed plays more than the actual audio - and this behavior is a regression on 3.0.5 and earlier.

Tested on W10 with audacity-win-3.2.0-alpha-20211217+8340b56-64bit

  1. Generate 30 second chirp
  2. Press Play-at-Speed
  3. Move the PAS slider to maximum speed
  4. Observe: Audacity plays the 30 second chirp and then an extra c. 7.5 seconds of silence beyond the chirp

Note that until Audacity gets to the end of the 30 second it's juts the 30 seconds that are shown on-screen, it's only when it gets to the 30 second mark that the extra c. 7.5 seconds of blank project are displayed for playback.

image

If I make a selection from 10-15 seconds in the chirp and then press Play-at-Speed I observe that it pays not just the 5 second selection rather it plays on for a further 9 seconds of playing the chirp stopping at c. 24 seconds. This does not happen with normal Play where only the 5 second selection is played.
image

UPDATE

Further testing today shows that if instead of speeding up the Play-at-Speed I instead slow it down, then not all of the chirp is played.

AFAICT it looks as though what PAS is doing in this case is playing slow but just for 30 seconds (the length of the chirp) and then it stops - and of course it's then only partway through the chirp.

If I leave the PAS slider at default 1.0x speed then the whole 30 second chirp is played

@petersampsonaudacity
Copy link
Author

petersampsonaudacity commented Dec 18, 2021

@Paul-Licameli
This also affects Loop play in a similar manner.

Tested on W10 with audacity-win-3.2.0-alpha-20211217+8340b56-64bit

  1. generate a 30 second chirp
  2. make a loop region from 10-15 seconds
  3. Press Play-at-Speed
  4. Move the PAS slider to maximum speed
  5. Observe: Audacity plays 10-15 seconds and continues playing to about 24 seconds
  6. Observe: Audacity loops back to 10 seconds and plays to 15 seconds
  7. Observe: Audacity "plays" from 15 to about 24 seconds, but plays silence on second and subsequent passes through the errant loop.

image

UPDATE

Similar to the non-loop play above
a) at speeds higher then 1.0x - PAS plays more than the loop region
b) at speeds lower than 1.0x - PAS lop plays only part of the loop region
c) at 1.0x - PAS loop plays the loop properly as ex[ected

As with non-loop play it looks as though it's looping for the 5 seconds of the loops temporal duration rather that looping the proper loop region at the required speed.

@petersampsonaudacity
Copy link
Author

I also find that after this, for both normal and looped PAS, I cannot use:
a) File>New, File>Open or File>Close (they are grayed-out)
b) nor can I delete the track using its top left "X".

@Paul-Licameli Paul-Licameli moved this from In QA to Reviewer approved in Sprint 10 - Enhancements&Bug fixes Dec 20, 2021
@Paul-Licameli Paul-Licameli moved this from Reviewer approved to Review in progress in Sprint 10 - Enhancements&Bug fixes Dec 20, 2021
@Paul-Licameli Paul-Licameli mentioned this issue Dec 20, 2021
6 tasks
@petersampsonaudacity
Copy link
Author

petersampsonaudacity commented Dec 20, 2021

Testing with @Paul-Licameli 's branch build Audacity_Windows_64bit_1600640254_9e004a6

The issues raised above all look to be fixed:
a) a full selection and only the selection gets played with PAS
b) the loop region is played properly with PAS
c) PAS is dynamic

There remains one little odd residual that I can see

  1. Generate 30 second chirp
  2. select from 10-15 seconds
  3. press Play-at-Speed
  4. Observe: after the selection plays the green play cursor remains and flickers (sometimes at the end but more often returns to the beginning of the selection)
  5. Now move the PAS slider
  6. Observe: the selection gets played once more
  7. Observe: the green play cursor remains and is flickering

This behavior is inconsistent with use of the normal Play button where the play cursor disappears once the playback of the selection is completed.

It looks like using Play-at-Speed leaves Audacity in play mode - as clicking on the Stop button causes the flickering play cursor to disappear.

@Paul-Licameli Paul-Licameli moved this from Review in progress to Ready for QA in Sprint 10 - Enhancements&Bug fixes Dec 20, 2021
@Paul-Licameli Paul-Licameli moved this from Ready for QA to Review in progress in Sprint 10 - Enhancements&Bug fixes Dec 20, 2021
@Paul-Licameli Paul-Licameli moved this from Review in progress to Ready for QA in Sprint 10 - Enhancements&Bug fixes Dec 20, 2021
@Penikov Penikov moved this from Ready for QA to In QA in Sprint 10 - Enhancements&Bug fixes Dec 20, 2021
Sprint 10 - Enhancements&Bug fixes automation moved this from In QA to Ready for QA Dec 20, 2021
@LWinterberg LWinterberg moved this from Ready for QA to In QA in Sprint 10 - Enhancements&Bug fixes Dec 20, 2021
@petersampsonaudacity
Copy link
Author

Tested on W10 with latest 3.1.3 alpha build Audacity_Windows_64bit_1602134390_7887ba0

PAS is now dynamic - so this bug, as state, is fixed.

BUT we still have the residual I wrote about in my last comment in this thread. I will log that as a new issue.

@petersampsonaudacity
Copy link
Author

we still have the residual I wrote about in my last comment in this thread. I will log that as a new issue.

Logged as: Play-at -Speed with a selection gets stuck in Play mode #2316

@Penikov Penikov moved this from In QA to Done in Sprint 10 - Enhancements&Bug fixes Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, undesired behaviour, or missed functionality P2 High priority regression Bug is a regression against previous version
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

8 participants