From 9964f20c634f0237cbfa99965142817a02b1d69c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 16 Jun 2022 10:36:18 -0600 Subject: [PATCH] when creating a session without a template, reset tempo map to default --- libs/ardour/session_state.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index b44b5f10a9..9f55e21ca6 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -642,6 +642,10 @@ Session::create (const string& session_template, BusProfile const * bus_profile, return -1; } + } else { + (void) TempoMap::write_copy(); /* we are going to throw away the return value and replace the map entirely */ + TempoMap::WritableSharedPtr new_map (new TempoMap (Tempo (120, 4), Meter (4, 4))); + TempoMap::update (new_map);; } /* set up Master Out and Monitor Out if necessary */