For an analytical project I'm working on, I want three separate scores right on top of each other: the bottom staff of the three has the actual music, and the top two staves are of the same size/shape as the actual music, just with the music itself removed (this is where the analysis goes).
I've chosen to approach this by creating three separate scores, each score using the same musical input, just with some of these inputs actively hidden in particular score blocks:
\version "2.20.0"
\language "english"
#(set-default-paper-size "letter")
global = {
\key e \minor
\time 2/2
\partial 4
}
right = \relative c' {
\global
\repeat unfold 4 { e8_\mf r8 |
g4 fs8 e ds4 e8 fs |
b,4\( cs8 ds e4\)
}
}
left = \relative c {
\global
\repeat unfold 4 { g8( fs |
e4) a b4._> a8 |
g4 fs e
}
}
\score {
\new PianoStaff <<
\new Staff = "upper" \right
\new Staff = "lower" { \clef bass \left }
>>
\layout {
\context {
\Score
\remove "Bar_number_engraver"
}
\context {
\Staff
\remove "Time_signature_engraver"
}
\context {
\Voice
\hide NoteHead
\hide Accidental
\override NoteHead #'no-ledgers = ##t
\remove "Stem_engraver"
\remove "Rest_engraver"
\remove "Phrasing_slur_engraver"
\remove "Slur_engraver"
\remove "Tie_engraver"
\remove "Dynamic_engraver"
\remove "Dots_engraver"
\omit Script
}
}
}
\score {
\new PianoStaff <<
\new Staff = "upper" \right
\new Staff = "lower" { \clef bass \left }
>>
\layout {
\context {
\Score
\remove "Bar_number_engraver"
}
\context {
\Staff
\remove "Time_signature_engraver"
}
\context {
\Voice
\hide NoteHead
\hide Accidental
\override NoteHead #'no-ledgers = ##t
\remove "Stem_engraver"
\remove "Rest_engraver"
\remove "Phrasing_slur_engraver"
\remove "Slur_engraver"
\remove "Tie_engraver"
\remove "Dynamic_engraver"
\remove "Dots_engraver"
\omit Script
}
}
}
\score {
\new PianoStaff <<
\new Staff = "upper" \right
\new Staff = "lower" { \clef bass \left }
>>
\layout {
\context {
\Staff
\remove "Time_signature_engraver"
}
\context {
\Voice
\remove "Stem_engraver"
\remove "Rest_engraver"
\remove "Phrasing_slur_engraver"
\remove "Slur_engraver"
\remove "Tie_engraver"
\remove "Dynamic_engraver"
\remove "Dots_engraver"
\omit Script
}
}
}
Under certain parameters, this works perfectly:
The difficulty comes when the music itself lasts more than one staff line, like by replacing \repeat unfold 3 above with \repeat unfold 4:
How can I move this extra music to the next page so that there's only ever one line of "actual" music shown on a given page? In other words, I want each page to look like the first image up above: two empty staves (each just one line long) and one staff with music (also exactly one line long).
It may also involve a solution without three separate \score blocks, but perhaps all included in a single score (just one without a bracket).

