print debugging for macOS/curl issues
[ardour.git] / scripts / template_band.lua
index 8b8c5dad1d4a4236890a4422cdfd31b4aee64433..6cdcd2d1e42216d8cb7f90e3a8f46aee73f4dd69 100644 (file)
@@ -31,6 +31,22 @@ end
 
 function factory (params) return function ()
 
+   --at session load, params will be empty.  in this case we can do things that we -only- want to do if this is a new session
+       if (not params) then
+          Editor:set_toggleaction ("Rulers", "toggle-tempo-ruler", true)
+          Editor:set_toggleaction ("Rulers", "toggle-meter-ruler", true)
+
+          Editor:access_action ("Transport", "primary-clock-bbt")
+          Editor:access_action ("Transport", "secondary-clock-minsec")
+
+          Editor:set_toggleaction ("Rulers", "toggle-minsec-ruler", false)
+          Editor:set_toggleaction ("Rulers", "toggle-timecode-ruler", false)
+          Editor:set_toggleaction ("Rulers", "toggle-samples-ruler", false)
+          
+          Editor:set_toggleaction ("Rulers", "toggle-bbt-ruler", true)
+       end
+
+
        local p         = params or route_setup ()
        local insert_at = p["insert_at"] or ARDOUR.PresentationInfo.max_order