@@ -197,9 +197,9 @@ def _generate_layout_block(config_dict: dict) -> str:
197197 "flag_style" ,
198198 "hide_empty_staves" ,
199199 "grand_staff_brace_collapse_height" ,
200- "timing_base_moment" ,
201200 "base_shortest_duration" ,
202201 "horizontal_tuplets" ,
202+ "full_length_tuplets" ,
203203 "large_time_signatures" ,
204204 ]
205205 values = _fetch_values_from_config_dict (config_dict , block = "layout" , keys = keys )
@@ -211,9 +211,9 @@ def _generate_layout_block(config_dict: dict) -> str:
211211 FLAG_STYLE ,
212212 HIDE_EMPTY_STAVES ,
213213 GRAND_STAFF_BRACE_COLLAPSE_HEIGHT ,
214- TIMING_BASE_MOMENT ,
215214 BASE_SHORTEST_DURATION ,
216215 HORIZONTAL_TUPLETS ,
216+ FULL_LENGTH_TUPLETS ,
217217 LARGE_TIME_SIGNATURES ,
218218 ) = values
219219
@@ -263,13 +263,9 @@ def _generate_layout_block(config_dict: dict) -> str:
263263 output_string += " \\ override Hairpin.to-barline = ##f\n "
264264 output_string += " \\ override Hairpin.after-line-breaking = ##t\n "
265265 output_string += "\n "
266- output_string += " % horizontal spacing\n "
267- output_string += " \\ set Timing.beamExceptions = #'()\n "
268- output_string += " \\ set Timing.beatStructure = 1, 1, 1, 1\n "
269266
270- if TIMING_BASE_MOMENT is not None :
271- output_string += f" \\ set Timing.baseMoment = #(ly:make-moment { TIMING_BASE_MOMENT } )\n "
272267 if BASE_SHORTEST_DURATION is not None :
268+ output_string += " % horizontal spacing\n "
273269 output_string += " \\ override Score.SpacingSpanner.base-shortest-duration = "
274270 output_string += f"#(ly:make-moment { BASE_SHORTEST_DURATION } )\n "
275271
@@ -307,6 +303,8 @@ def _generate_layout_block(config_dict: dict) -> str:
307303 output_string += " (ly:grob-set-property! grob 'positions (cons new-pos new-pos))\n "
308304 output_string += " (ly:tuplet-bracket::print grob)))\n "
309305 output_string += "\n "
306+
307+ if FULL_LENGTH_TUPLETS is not None :
310308 output_string += " % full length tuplets\n "
311309 output_string += " \\ context {\n "
312310 output_string += " \\ Score\n "
0 commit comments