- context ()->set_property ("measureLength",
- Moment (Rational (1)).smobbed_copy ());
- context ()->set_property ("beatLength",
- Moment (Rational (1, 4)).smobbed_copy ());
+
+ SCM timeSignatureSettings = timing->get_property ("timeSignatureSettings");
+ if (!scm_is_pair (timeSignatureSettings))
+ {
+ programming_error ("missing timeSignatureSettings");
+ timeSignatureSettings = Lily::default_time_signature_settings;
+ }
+ context ()->set_property ("timeSignatureSettings", timeSignatureSettings);
+
+ SCM beamExceptions = timing->get_property ("beamExceptions");
+ if (!scm_is_pair (beamExceptions))
+ {
+ beamExceptions = Lily::beam_exceptions (timeSignatureFraction,
+ timeSignatureSettings);
+ }
+ context ()->set_property ("beamExceptions", beamExceptions);
+
+ SCM baseMoment = timing->get_property ("baseMoment");
+ if (!unsmob<Moment> (baseMoment))
+ {
+ baseMoment =
+ Moment (ly_scm2rational
+ (Lily::base_length (timeSignatureFraction,
+ timeSignatureSettings))).smobbed_copy ();
+ }
+ context ()->set_property ("baseMoment", baseMoment);
+
+ SCM beatStructure = timing->get_property ("beatStructure");
+ if (!scm_is_pair (beatStructure))
+ {
+ beatStructure =
+ Lily::beat_structure (ly_rational2scm (unsmob<Moment> (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"));