Fix score block structure - wrap staves in StaffGroup
This commit is contained in:
parent
6bf97e5abe
commit
4ffbcc79d2
|
|
@ -109,4 +109,4 @@
|
|||
}
|
||||
|
||||
|
||||
{STAVES}
|
||||
{SCORE}
|
||||
|
|
|
|||
|
|
@ -502,7 +502,18 @@ def generate_score(name, num_voices, output_dir="lilypond"):
|
|||
}}
|
||||
'''
|
||||
|
||||
score_text = score_text.replace("{STAVES}", staves)
|
||||
score_block = f"""\\score{{
|
||||
<<
|
||||
\\new StaffGroup {{
|
||||
<<
|
||||
{staves}
|
||||
>>
|
||||
}}
|
||||
>>
|
||||
\\layout{{}}
|
||||
}}"""
|
||||
|
||||
score_text = score_text.replace("{SCORE}", score_block)
|
||||
|
||||
with open(score_path, "w") as f:
|
||||
f.write(score_text)
|
||||
|
|
|
|||
Loading…
Reference in a new issue