diff --git a/lilypond/score_template.ly b/lilypond/score_template.ly index 9a8aa0f..474b58e 100644 --- a/lilypond/score_template.ly +++ b/lilypond/score_template.ly @@ -109,4 +109,4 @@ } -{STAVES} +{SCORE} diff --git a/src/transcriber.py b/src/transcriber.py index 3d98c83..fedc328 100644 --- a/src/transcriber.py +++ b/src/transcriber.py @@ -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)