On 2025-11-25 07:37, Paul Scott wrote:
IIUC: As in a separate thread here recently I, like some others, have put all my structure in a separate variable which all the separate parts use.
timing = {
\repeat volta 2 s1*8
}
vlnNotes = \fixed c'' {
[violin notes]
}
vlaNotes = \fixed c' {
[viola notes]
}
violin = << \timing \vlnNotes >>
viola = << \timing \vlaNotes >>
with all of the above in a file which is included in a file for each voice/instrument which has
labeling information and other specific information such as header.
\include "musicFile"
...
\score{ \vlnNotes }
This enforces that all parts have the same structure.
Hope that makes sense,
Unfortunately, this is a risky strategy, when it comes to
repeats. There have been several threads on the mailing list over
the years, where the actual problem was that the repeat structure
was not included in the individual parts. Please remember that the
general philosophy of LilyPond is that the input should describe
the semantic meaning of the music, not the layout, and repeats are
an essential part of the semantics. I couldn't find a good example
of these problems when I did a quick search in the mailing list
archives, but I know it has appeared several times.
/Mats
