+
+ SCM timeSignatureSettings = timing->get_property ("timeSignatureSettings");
+ if (!scm_is_pair (timeSignatureSettings))
+ {
+ programming_error ("missing timeSignatureSettings");
+ // A memoized constant is not the prettiest thing as a fallback
+ // since it does not track changes of the variable. However,
+ // this is still better than nothing, and we already complained
+ // via a programming_error
+ timeSignatureSettings = ly_lily_module_constant ("default-time-signature-settings");
+ }
+ context ()->set_property ("timeSignatureSettings", timeSignatureSettings);
+
+ SCM beamExceptions = timing->get_property ("beamExceptions");
+ if (!scm_is_pair (beamExceptions))
+ {
+ beamExceptions =
+ scm_call_2 (ly_lily_module_constant ("beam-exceptions"),
+ timeSignatureFraction,
+ timeSignatureSettings);
+ }
+ context ()->set_property ("beamExceptions", beamExceptions);
+
+ SCM baseMoment = timing->get_property ("baseMoment");
+ if (!Moment::is_smob (baseMoment))
+ {
+ baseMoment =
+ Moment (ly_scm2rational
+ (scm_call_2 (ly_lily_module_constant ("base-length"),
+ timeSignatureFraction,
+ timeSignatureSettings))).smobbed_copy ();
+ }
+ context ()->set_property ("baseMoment", baseMoment);
+
+ SCM beatStructure = timing->get_property ("beatStructure");
+ if (!scm_is_pair (beatStructure))
+ {
+ beatStructure =
+ scm_call_3 (ly_lily_module_constant ("beat-structure"),
+ ly_rational2scm (Moment::unsmob (baseMoment)->main_part_),
+ timeSignatureFraction,
+ timeSignatureSettings);
+ }
+ context ()->set_property ("beatStructure", beatStructure);
+
+ context ()->set_property ("beamHalfMeasure",
+ timing->get_property ("beamHalfMeasure"));
+
+ context ()->set_property ("autoBeaming",
+ timing->get_property ("autoBeaming"));