Bugzilla – Bug 2418
Time toolbar displays incorrect time if project rate isn't 44100
Last modified: 2020-06-07 11:52:16 UTC
If the project rate isn't 44100 then the Time Toolbar will display the wrong time.
I confirm Leland's findings on W10 and macOS 10.15.4 with RC05 I tested with a 2 hour chirp ad setting the cursor to 1h 50m or so The difference is only visible in samples (or hh:mm:ss + samples) and is only an amount of samples - so looks like some form or rounding error Curiously if you set the cursor to an exact number of seconds with zero samples (do this using the selection toolbar and set a label to aid this) then the Selection toolbar and the Time toolbar match. This is a regression on 2.3.3 where the readings in the Selection toolbar match for selection and time position. Because this is a regression and the new big Time toolbar is a key 2.4.0 feature I'm going to rates this as P2
I don't think this is a bug. When the time format is set to "samples", that is "number of samples at the current project rate". I think this is a documentation issue rather than a bug. Consider the case of multiple tracks selected, where the tracks have different sample rates. In my opinion, the only sensible thing that the Selection Toolbar can show is the "number of samples at the current project rate". Note that this also affect Generator effects.This looks even more strange than the Selection Toolbar, but imo this is also "not a bug".
I see the correct time when displayed in anything other than samples. If anyone sees "seconds" or "h:m:s" incorrectly, then that IS a bug.
(In reply to Steve Daulton from comment #2) > I don't think this is a bug. > > When the time format is set to "samples", that is "number of samples at the > current project rate". But the time toolbar is not showing that, it is still showing the number of samples at the original sample rate, whereas the times (in samples) are shown using the current sample rate in the selection toolbar. See steps to reproduce, step 9. > > I think this is a documentation issue rather than a bug. > > Consider the case of multiple tracks selected, where the tracks have > different sample rates. In my opinion, the only sensible thing that the > Selection Toolbar can show is the "number of samples at the current project > rate". > > Note that this also affect Generator effects.This looks even more strange > than the Selection Toolbar, but imo this is also "not a bug".
(In reply to David Bailes from comment #4) Thanks David, I misunderstood. I agree this is a bug. The Time toolbar should behave the same as the other time widgets in the Selection toolbar and time widgets in Generate effects. I've updated step 9 for clarity.
Fix in: https://github.com/audacity/audacity/commit/c43c757
Testing on W10 with Audacity 2.4.2 b5e0565 At Step 9 the sample counts match
(In reply to Leland Lucius from comment #6) Testing on macOS 10.15.5 Catalina with Audacity 2.4.2 b5e0565 At Step 9 the sample counts match
Works for me on Linux.