Paulo, It seems like what you have is the right approach. How much simpler could it be? AFAIK \alternative is only useful with \repeat volta. Of course, you'd leave off the backslashes when defining the variables. John
-----Original Message----- From: lilypond-user [mailto:lilypond-user-bounces+jschlomann=wideopenwest....@gnu.org] On Behalf Of Paulo Matos Sent: Thursday, January 6, 2022 2:36 PM To: lilypond-user@gnu.org Subject: Inputting music in parts Hi, I have some music I want to transcribe that has 2 parts: A and B the music goes: part A part B part A with special ending I could of course define variables like: \partA = \partAtransition = \partAending = \partB = and then write the music as \partA \partAtransition \partB \partA \partAending However, I would like to simplify the final score. What's the best way to write this? I saw repeats but that doesn't seem to be exactly what I need. However the partA with different endings sound like it could be where I could use \alternative, but unsure how to put it all together. Any suggestions? Thanks, -- Paulo Matos