Here's a code snippet demonstrating what I want to do.
marks = {
s1
\mark "A"
s1
}
violin = {
\clef treble
\time 4/4
e'4 g' f' d'
% \mark "A"
e'1
\bar "|."
}
continuo = {
\clef bass
\time 4/4
c2 g2
% \mark "A"
c1
\bar "|."
}
In the continuo and violin parts, you can see where I have commented out a rehearsal mark. Instead of adding that rehearsal mark to both parts, I want to use the "marks" variable to add the rehearsal mark to both parts. I want to create one score combining the continuo and marks, and another score combining the violin and marks. What I don't know how to do is write the score objects properly.