View Issue Details

IDProjectCategoryView StatusLast Update
0001682ardourbugspublic2020-04-19 20:12
Reporterlincoln Assigned Topaul  
PrioritynormalSeverityminorReproducibilityrandom
Status closedResolutionfixed 
Product Version2.0 
Summary0001682: Playhead does not follow click on bar line
DescriptionIf you click on the bar line the playhead will not always jump to the point where you clicked. However pressing play starts from the desired position. I know one can press P to move the playhead but this I still regard this as a rough edge.

This is on SVN latest 2.0 ongoing.
TagsNo tags attached.

Activities

SaBer

2007-05-16 23:15

developer   ~0003983

I can confirm this on 2.0.2. One session of mine behaves like this always.

2007-05-21 20:33

 

drums5.ardour (172,440 bytes)

SaBer

2007-05-21 20:35

developer   ~0004006

Uploaded a session file that does this always for me (drums5.ardour).

zettberlin

2007-05-21 22:12

reporter   ~0004008

Last edited: 2007-06-03 12:20

same here on some (bigger)sessions (with Ardour 2.0.2)

edit: I experience this behaviour here on many sessions now regardless how big and if they are new or made with 0.99. I also had a case where the playcursor was invisible after it left the editor-window and "center session view at playhead" was ordered. (So it looks a bit as if this is not an issue with the click to position the playhead but with the visibility of the playhead in some cases...)

2007-06-03 21:08

 

playhead_ruler.patch (646 bytes)   
Index: gtk2_ardour/editor_rulers.cc
===================================================================
--- gtk2_ardour/editor_rulers.cc	(revision 1946)
+++ gtk2_ardour/editor_rulers.cc	(working copy)
@@ -156,9 +156,7 @@
 		if (session->is_auditioning()) {
 			session->cancel_audition ();
 		}
-		/* transport playhead */
-		snap_to (where);
-		session->request_locate (where);
+
 		_dragging_playhead = true;
 		break;
 
@@ -202,7 +200,7 @@
 		/* transport playhead */
 		_dragging_playhead = false;
 		snap_to (where);
-		session->request_locate (where);
+		session->request_locate (where, session->transport_rolling());
 		break;
 
 	case 2:
playhead_ruler.patch (646 bytes)   

lincoln

2007-06-03 21:14

reporter   ~0004056

Last edited: 2007-06-03 21:29

I attached a small patch that takes care of this bug. The playhead will always follow the position clicked on the ruler.

After much playing around it came down to double triggering of events (ruler_button_press and ruler_button_release) I simply removed the locate handling logic from the button_press and left it in button_release.

The behaviour is now similar to pressing P, works always and multiple presses with transport rolling will not end up stopping the transport.

Somehow this bug really got to me!

nowhiskey

2007-06-03 21:30

reporter   ~0004057

hi lincoln, i already tried the patch and it woks good here - the playhead will always take the position where i click in the bar-line.

cheers,
doc

paul

2007-08-24 12:36

administrator   ~0004288

this patch is not quite correct, and also removes some desirable functionality.

if the user wants to play immediately after a locate, they should activate autoplay. i don't see it as being a good thing that click on the rulers always starts the transport rolling, when "p" and other kinds of locates depend on the autoplay setting.

there was also a specific reason for having "playhead locates on button press" rather than release - I am not sure what it was at the moment. I agree that the logic should not be duplicated, and will look into what to do about it.

lincoln

2007-08-24 20:46

reporter   ~0004292

Paul,

I don't understand. When clicking in the ruler when stopped and auto play is off, the transport will not start rolling. Infact with this patch clicking on the ruler behaves exactly like pressing p with both autoplay on and off.

What is not nice without the patch is that clicking on the ruler will not move the playhead but when you start the transport it starts from the clicked position. The play head just jumps to the desired position on play. So basically there is an action with no visual feedback.

paul

2007-08-27 13:00

administrator   ~0004302

i've applied a modified version of this patch to branches/2.0-ongoing. i'd appreciate confirmation that it still works as you intended, then we can mark this resolved/closed.

lincoln

2007-08-27 14:07

reporter   ~0004306

Indeed it does. Thanks.

paul

2007-08-27 15:32

administrator   ~0004308

see notes. fixed in branches/2.0-ongoing

oofus

2007-08-27 21:29

developer   ~0004312

There is a visual oddity since this has been fixed. Occasionally when clicking on the ruler to locate the playhead, the playhead jumps to the new location, then jumps back to it's original location, then jumps back to the new location. If it happens, it happens when the mouse button is released.

paul

2008-11-26 21:40

administrator   ~0005383

see notes.

oofus - i think the behaviour you referred to is gone, and if not is not actually related to this bug or feature, but has more to do with playhead tracking in general.

system

2020-04-19 20:12

developer   ~0021522

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2007-05-16 22:28 lincoln New Issue
2007-05-16 23:15 SaBer Note Added: 0003983
2007-05-21 20:33 SaBer File Added: drums5.ardour
2007-05-21 20:35 SaBer Note Added: 0004006
2007-05-21 22:12 zettberlin Note Added: 0004008
2007-05-21 22:27 zettberlin Note Edited: 0004008
2007-06-03 12:18 zettberlin Note Edited: 0004008
2007-06-03 12:20 zettberlin Note Edited: 0004008
2007-06-03 21:08 lincoln File Added: playhead_ruler.patch
2007-06-03 21:14 lincoln Note Added: 0004056
2007-06-03 21:29 lincoln Note Edited: 0004056
2007-06-03 21:30 nowhiskey Note Added: 0004057
2007-08-24 12:36 paul Note Added: 0004288
2007-08-24 20:46 lincoln Note Added: 0004292
2007-08-27 13:00 paul Note Added: 0004302
2007-08-27 14:07 lincoln Note Added: 0004306
2007-08-27 15:32 paul Status new => resolved
2007-08-27 15:32 paul Resolution open => fixed
2007-08-27 15:32 paul Assigned To => paul
2007-08-27 15:32 paul Note Added: 0004308
2007-08-27 21:29 oofus Status resolved => feedback
2007-08-27 21:29 oofus Resolution fixed => reopened
2007-08-27 21:29 oofus Note Added: 0004312
2008-11-26 21:40 paul cost => 0.00
2008-11-26 21:40 paul Status feedback => resolved
2008-11-26 21:40 paul Resolution reopened => fixed
2008-11-26 21:40 paul Note Added: 0005383
2020-04-19 20:12 system Note Added: 0021522
2020-04-19 20:12 system Status resolved => closed