View Issue Details

IDProjectCategoryView StatusLast Update
0005200ardourbugspublic2015-09-18 15:27
Reportercolinf Assigned Topaul  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0005200: Clocks in region properties always start off showing samples
DescriptionThe clocks in the region properties window always start off in samples mode when a session is opened, regardless of the format of the secondary clock.

Moreover, if you do change the format via right-click in the region properties window, it is changed only for that particular region: other regions remain in samples mode.
TagsNo tags attached.

Activities

colinf

2012-11-30 16:10

updater   ~0014306

Also (this may be a separate bug), the clocks in the region properties window cannot be edited until they've been right-clicked on once to pop up the menu (though it's not necessary to actually change the format).

colinf

2012-12-14 16:09

updater   ~0014354

Seems like the clocks in the Locations window and editor sidebar also start off in samples mode in a new session, though they do at least store their mode in the session file, so maybe this doesn't matter quite so much.

colinf

2012-12-14 16:11

updater   ~0014355

Hmm, and I can't reproduce the region properties clocks not being editable now...

2013-01-07 19:31

 

region+location-use-secondary-clock-mode.patch (1,319 bytes)   
Index: gtk2_ardour/region_editor.cc
===================================================================
--- gtk2_ardour/region_editor.cc	(revision 13795)
+++ gtk2_ardour/region_editor.cc	(working copy)
@@ -30,6 +30,7 @@
 
 #include "ardour_ui.h"
 #include "clock_group.h"
+#include "main_clock.h"
 #include "gui_thread.h"
 #include "region_editor.h"
 #include "utils.h"
@@ -60,7 +61,7 @@
 {
 	set_session (s);
 
-        _clock_group->set_clock_mode (AudioClock::Frames);
+        _clock_group->set_clock_mode (ARDOUR_UI::instance()->secondary_clock->mode());
         _clock_group->add (position_clock);
         _clock_group->add (end_clock);
         _clock_group->add (length_clock);
Index: gtk2_ardour/location_ui.cc
===================================================================
--- gtk2_ardour/location_ui.cc	(revision 13795)
+++ gtk2_ardour/location_ui.cc	(working copy)
@@ -27,6 +27,7 @@
 
 #include "ardour_ui.h"
 #include "clock_group.h"
+#include "main_clock.h"
 #include "gui_thread.h"
 #include "keyboard.h"
 #include "location_ui.h"
@@ -1120,7 +1121,7 @@
 
 	XMLProperty* p = node->property (X_("clock-mode"));
 	if (!p) {
-		return AudioClock::Frames;
+		return ARDOUR_UI::instance()->secondary_clock->mode();
 	}
 	      
 	return (AudioClock::Mode) string_2_enum (p->value (), AudioClock::Mode);

colinf

2013-01-07 19:33

updater   ~0014443

I made a simple patch to make clocks in the region properties use the secondary clock mode, and in the locations window to default to that mode if no other has been set.

Is this the right thing to do?

paul

2013-01-08 00:22

administrator   ~0014446

applied, rev 13806. thanks!

colinf

2015-09-18 15:27

updater   ~0017305

Closing old issues reported by me: these have long since been fixed.

Issue History

Date Modified Username Field Change
2012-11-30 16:07 colinf New Issue
2012-11-30 16:10 colinf Note Added: 0014306
2012-12-14 16:09 colinf Note Added: 0014354
2012-12-14 16:11 colinf Note Added: 0014355
2013-01-07 19:31 colinf File Added: region+location-use-secondary-clock-mode.patch
2013-01-07 19:33 colinf Note Added: 0014443
2013-01-08 00:22 paul cost => 0.00
2013-01-08 00:22 paul Note Added: 0014446
2013-01-08 00:22 paul Status new => resolved
2013-01-08 00:22 paul Resolution open => fixed
2013-01-08 00:22 paul Assigned To => paul
2015-09-18 15:27 colinf Note Added: 0017305
2015-09-18 15:27 colinf Status resolved => closed