You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Play-at-Speed has reverted to being non-dynamic #2149
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:
Get some audio
click the Play-at-Speed button
move the slider during PAS playback
Observe the speed of play does not change.
Expected behavior
Play speed for PAS to change dynamically.
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.
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.
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.
@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
Generate 30 second chirp
Press Play-at-Speed
Move the PAS slider to maximum speed
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.
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.
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
@Paul-Licameli
This also affects Loop play in a similar manner.
Tested on W10 with audacity-win-3.2.0-alpha-20211217+8340b56-64bit
generate a 30 second chirp
make a loop region from 10-15 seconds
Press Play-at-Speed
Move the PAS slider to maximum speed
Observe: Audacity plays 10-15 seconds and continues playing to about 24 seconds
Observe: Audacity loops back to 10 seconds and plays to 15 seconds
Observe: Audacity "plays" from 15 to about 24 seconds, but plays silence on second and subsequent passes through the errant loop.
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.
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".
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
Generate 30 second chirp
select from 10-15 seconds
press Play-at-Speed
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)
Now move the PAS slider
Observe: the selection gets played once more
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.
Activity
petersampsonaudacity commentedon Nov 16, 2021
I assume this is likely to have been caused by the playback changes made for the new looping in 3.1.0
petersampsonaudacity commentedon Nov 16, 2021
Play-at-Speed loop play is also similarly non-dynamic
[-]Play-at-speed has reverted to being non-dynamic[/-][+]Play-at-Speed has reverted to being non-dynamic[/+]DavidBailes commentedon Nov 16, 2021
Tested with Audacity 3.1.1 on Windows 10, preferences->Playback->"Vari-speed play" checked.
Using the commands on the Extra->Play-at-speed submenu:
Fixing the bug should include fixing the commands on the Extra->Play-at-speed submenu.
LWinterberg commentedon Nov 16, 2021
Downgrading to P2 - has a workaround and doesn't corrupt projects
petersampsonaudacity commentedon Nov 16, 2021
But the workaround is not documented - and is hardly "discoverable" ;-)
Paul-Licameli commentedon Dec 9, 2021
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 commentedon Dec 10, 2021
In fact this was "discovered" and reported (complained about) by a Forum user) - but just the one complaint so far ...
TheRealAyCe commentedon Dec 10, 2021
By me, I use play-at-speed a lot. :P
crsib commentedon Dec 10, 2021
@Tantacrul @AnitaBats
AnitaBats commentedon Dec 10, 2021
Will review on the standup
Tantacrul commentedon Dec 11, 2021
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 commentedon Dec 17, 2021
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.
petersampsonaudacity commentedon 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 commentedon 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
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.
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.

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 commentedon 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
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 commentedon Dec 18, 2021
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".
petersampsonaudacity commentedon 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
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.
petersampsonaudacity commentedon Dec 20, 2021
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 commentedon Dec 20, 2021
Logged as: Play-at -Speed with a selection gets stuck in Play mode #2316