Skip to content

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

Closed

Description

@petersampsonaudacity

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

Activity

  1. added
    AU3-bug
    P1
    regression
    on Nov 16, 2021
  2. petersampsonaudacity commented on Nov 16, 2021

    @petersampsonaudacity
    Author

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

  3. petersampsonaudacity commented on Nov 16, 2021

    @petersampsonaudacity
    Author

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

  4. changed the title [-]Play-at-speed has reverted to being non-dynamic[/-] [+]Play-at-Speed has reverted to being non-dynamic[/+] on Nov 16, 2021
  5. DavidBailes commented on Nov 16, 2021

    @DavidBailes
    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.

  6. added
    P2
    and removed
    P1
    on Nov 16, 2021
  7. LWinterberg commented on Nov 16, 2021

    @LWinterberg
    Member

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

  8. petersampsonaudacity commented on Nov 16, 2021

    @petersampsonaudacity
    Author

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

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

  9. added this to the Audacity 3.2 milestone on Nov 18, 2021
  10. Paul-Licameli commented on Dec 9, 2021

    @Paul-Licameli
    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.

  11. petersampsonaudacity commented on Dec 10, 2021

    @petersampsonaudacity
    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 ...

  12. TheRealAyCe commented on Dec 10, 2021

    @TheRealAyCe

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

  13. crsib commented on Dec 10, 2021

    @crsib
    Contributor
  14. AnitaBats commented on Dec 10, 2021

    @AnitaBats

    Will review on the standup

  15. Tantacrul commented on Dec 11, 2021

    @Tantacrul

    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.

  16. Paul-Licameli commented on Dec 17, 2021

    @Paul-Licameli
    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.

  17. petersampsonaudacity commented on Dec 17, 2021

    @petersampsonaudacity
    Author

    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.

  18. petersampsonaudacity commented on Dec 18, 2021

    @petersampsonaudacity
    Author

    @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

  19. petersampsonaudacity commented on Dec 18, 2021

    @petersampsonaudacity
    Author

    @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.

  20. petersampsonaudacity commented on Dec 18, 2021

    @petersampsonaudacity
    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".

  21. petersampsonaudacity commented on Dec 20, 2021

    @petersampsonaudacity
    Author

    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.

  22. petersampsonaudacity commented on Dec 20, 2021

    @petersampsonaudacity
    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.

  23. petersampsonaudacity commented on Dec 20, 2021

    @petersampsonaudacity
    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AU3-bugP2regression

Type

No type

Fields

Priority

None yet

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions