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

Audacity Bugzilla



Bug 972 - Recording starts mid-screen
Recording starts mid-screen
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.1.1
Per OS All
: P4 Repeatable
Assigned To: Paul L
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-25 08:24 UTC by Peter Sampson
Modified: 2018-08-20 11:51 UTC (History)
8 users (show)

See Also:
Steps To Reproduce:
1) Open new project 2) Press Record 3) recording starts at time=0 but time=0 is now mid-pane (no longer left-justified in the waveform pane - as in previous Audacities) 1)Open new project 2)Import 3 minute audio file 3)audio is imported fit-to-screen 4)Zoom out several times 5)Audio is centred in the waveform pane and not left-justified (as in previous Audacities) 6)zoomed audio cannot be moved leftwards
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
petersampsonaudacity: Regression+
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+
richard: Test‑OK‑Lin+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sampson 2015-05-25 08:24:55 UTC
Time zero for recording starting mid-pane with Timeline starting at -6.0 or so.  

And with zooming out a long way the zoom is maintained in the centre of the waveform pane and cannot be move leftwards.  This makes it look like a kludge  solution.

I believe that this has been done to "fix" scrolling bug #966 - but in so doing has led to behavior which has not been present in any previous version of Audacity and is thus a regression.  It also looks odd to a long-time user of Audacity.  

As a regression is should probably be rated higher than P4
Comment 1 Peter Sampson 2015-05-25 09:14:47 UTC
Also try:

1)Open new project
2)Import 3 minute audio file
3)audio is imported fit-to-screen
4)Zoom in once
5) audio starts mid-screen - with wasted space to the left at this zoom level
Comment 2 Paul L 2015-05-25 09:19:19 UTC
I notice when I record in an empty project that time zero is not exactly mid-pane.
Comment 3 Paul L 2015-05-25 10:00:30 UTC
The recording thing is a bug I shall fix.

The zoom behavior can be argued as a "feature."

Zoom-in code is written to try to make the center of selection the new screen center.  Zoom-out tries to keep the same center regardless of the selection.  Both were constrained by the scroll limits.  Now we have relaxed those limits so those rules apply without exception.

Ctrl-Scroll wheel tries to keep the center where the mouse points.  Try an extreme zoom out and in again with the wheel.  Used to be, you lose your place because of the scrolling constraint on zoom out.  Now, you don't.  I think that is an improvement.

What you observe for zoom in is a consequence of selection being at 0 and of duration 0.  This is not distinct from the state of "no selection."
Comment 4 Paul L 2015-05-25 10:09:57 UTC
Fix the recording problem at https://github.com/audacity/audacity/commit/a74729aaf7e58f5d91f8fa5b3b749912322cf5f2
Comment 5 Peter Sampson 2015-05-26 06:01:42 UTC
(In reply to Paul L from comment #4)
Confirmed Recording issue fixed in 2.1.1 alpha 26May15 r46a4c4d on W7-HP 64-bit
Recording now starts left-justified in the pane once again.

I think I'm buying your argument for the zoom changes - but it still looks different and odd to this long-time user.
Comment 6 Steve Daulton 2015-05-26 09:24:17 UTC
This should really be two separate bugs, then the "Recording starts mid-screen" bug can possibly be closed by a74729a (I've not yet tested).

"Zoom-out is centred" is in my opinion a P2 regression that needs to be logged separately, so I've added bug 977.

I will edit the summary description for this bug report (972) to make it specific to the "Recording starts mid-screen" issue.
Comment 7 Paul L 2015-05-26 12:58:05 UTC
I repeat:
Fix the recording problem at https://github.com/audacity/audacity/commit/a74729aaf7e58f5d91f8fa5b3b749912322cf5f2

Did I forget to change status before?  FIX MADE now
Comment 8 Paul L 2015-05-26 17:15:09 UTC
New case identified by Steve.


1) Generate some audio
2) Zoom out
3) Delete the track
4) Start recording. Time zero is now in the middle of the window. 

Therefore I am reopening.
Comment 9 Paul L 2015-05-26 20:27:18 UTC
Another fix here: https://github.com/audacity/audacity/commit/2f3d223ec2014a36b7fca55a74d00a4ace0c0d93

Notice this behavior that existed in 2.1.0, and is corrected too:

1 Generate sound in an empty project.
2 Scroll the track.
3 Delete the track.
4 Use the menu to make a new empty track.

In this case the time ruler does not change between 3 and 4 so that time 0 is not on screen.

This fix resets the left edge of time ruler between 3 and 4.  (Used to be that the zoom was reset to initial state when the last track was deleted, but not the scroll position.  So I have done that too now.)
Comment 10 Peter Sampson 2015-09-15 13:26:18 UTC
Tests ok on W7-HP 64-bit audacity-win-r5f985a2-2.1.2-alpha-09-sep-15
Comment 11 Peter Sampson 2016-02-18 09:49:44 UTC
Testing on Mac El Capitan on 01a95c5-2.1.3-alpha-13-feb-16
and
Testing on W10 on audacity-win-r4d154c4-2.1.3-alpha-18-feb-16


Tests ok on both these platforms - both with original steps and with steps in Comment #8
Comment 12 Richard Ash 2016-11-26 16:13:16 UTC
OK, in order to make this reproduce I needed the following preferences on: "Tracks -> Pinned Recording/Playback head". Green down arrow button on the time ruler needs to be pressed to turn it into a Pin.

What I now see is that when the transport is running (playback or recording), time=0 is always in the middle of the screen. When I stop, zero jumps back to the left hand end of the window. Everything seems to work OK after that.

Certainly I can zoom out and back in as normal without the problem shown in the second set of steps.

I'm frankly not very clear what behaviour I'm supposed to be looking for in the first steps, or those in comment 8. Both sets of steps describe perfectly sensible auto-scroll behaviours when the head is pinned and the waveform is scrolling itself.

Tested at 396a6f0 from audacity/audacity on Linux. Works correctly, so flagging this as Test-OK-Lin.
Comment 13 Gale Andrews 2016-12-01 19:04:02 UTC
(In reply to Richard Ash from comment #12)
> not very clear what behaviour I'm supposed to be looking for
When the bug was reported, the steps reproduced because "enable scrolling left of zero" was implemented without any preference to turn it off .