13
0
Go to file
Mads Kiilerich 80ffa58c81 temporal: introduce Temporal::reset() with TempoMap initialization
Ardour uses some global variables and singletons. These global variables
can be initialized with a value prior to program execution (especially
if they are const), but some of the static variables are modified, and
it is crucial that they always are reset when switching to another
session. To keep things simple and explicit and consistent, we thus
introduce Temporal::reset() to reset TempoMap (and later on also the
superclock rate). This is somewhat similar to Temporal::init(), which
usually only is invoked once (on program start) to initialize singletons
(such as the TempoMap).

9964f20c added TempoMap initialization to Session::create() ... but only
when not using a template. This create method is mainly preparing the
filesystem for a new session, and TempoMap initialization doesn't seem
like a perfect fit for it. It also seemed odd that it only initialized
TempoMap for clean new sessions, while existing sessions and templates
initialized it elsewhere.

Instead, invoke the TempoMap initialization early in the Session
creation process. This might introduce an extra and unnecessary TempoMap
initialization when loading an existing session or using a template, but
that will be cheap and do no harm, while providing a guarantee that we
always use the same default value.
2023-09-20 12:30:53 -06:00
doc short doc on drawing cairo single pixel lines 2023-07-17 16:46:54 -06:00
gtk2_ardour temporal: avoid using superclock in Editor::initialize_canvas before creating the session 2023-09-20 12:30:53 -06:00
headless wscript: drop unused "mandatory variables" 'top' and 'out' in libs 2023-09-17 07:34:55 -06:00
libs temporal: introduce Temporal::reset() with TempoMap initialization 2023-09-20 12:30:53 -06:00
luasession wscript: drop unused "mandatory variables" 'top' and 'out' in libs 2023-09-17 07:34:55 -06:00
msvc_extra_headers
MSVCardour3 remove midi_scroomer.h from MSVC project file 2023-09-10 18:20:35 -06:00
MSVCMixbus3
MSVCvst_scan
session_utils wscript: drop unused "mandatory variables" 'top' and 'out' in libs 2023-09-17 07:34:55 -06:00
share wscript: drop unused "mandatory variables" 'top' and 'out' in libs 2023-09-17 07:34:55 -06:00
tools macos: temporarily exclude media files from packaging 2023-09-20 10:55:29 -06:00
.dir-locals.el
.gitattributes
.gitignore
ardour.1 Update tracker/reference URLs to prefer HTTPs 2022-10-24 04:59:20 +02:00
COPYING add plugin clarification to COPYING 2023-04-26 13:28:29 -06:00
nutempo-todo
PACKAGER_README
README
README-GITHUB.txt Update tracker/reference URLs to prefer HTTPs 2022-10-24 04:59:20 +02:00
system_config
TRANSLATORS Update tracker/reference URLs to prefer HTTPs 2022-10-24 04:59:20 +02:00
waf
wscript wscript: drop unused imports, manual 2023-09-17 07:34:55 -06:00

Please see the Ardour web site at https://ardour.org/ for all documentation..

For information on building ardour: 
      
     https://ardour.org/development.html