Skip to content

Commit 080c0c7

Browse files
removing unused layout properties
1 parent 94a37fb commit 080c0c7

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

build/includes/stylesheet.ily

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@
9393
\override Hairpin.after-line-breaking = ##t
9494

9595
% horizontal spacing
96-
\set Timing.beamExceptions = #'()
97-
\set Timing.beatStructure = 1, 1, 1, 1
98-
\set Timing.baseMoment = #(ly:make-moment 1/4)
9996
\override Score.SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/32)
10097

10198
% spanners

build/my_composition.pdf

0 Bytes
Binary file not shown.

src/config/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
flag_style = "flat-flag"
4646
hide_empty_staves = true
4747
grand_staff_brace_collapse_height = 4
48-
timing_base_moment = "1/4"
4948
base_shortest_duration = "1/32"
5049
horizontal_tuplets = true
50+
full_length_tuplets = true
5151
large_time_signatures = true
5252

5353
[instrumentation]

src/score_maker/stylesheet_generator.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)