thanks for pointing the errors out. I realized it wasn't compiling after
I sent it out. I found a workaround by using a \context block, like
this:
\version "2.19.36"
VioloncelloMusic = \new Voice \relative c {
\clef bass
\time 4/8
\key es \major
<<
{ g8.\( f16 es8 g16--( g--) | as4 es8 as | g8. f16 es8 es |
f2\) | g4\( es8 g | as4 es8 as | g4 f | es2\) | bes'4\( es, | c' es,8 es |
bes'4 es,8 es | f4.\) f8\( | %% Bar 95
g8. f16 es8 g | as4 es8 as | g4 f | es2\) | }
\context PianoStaff = "ossia" \with { \remove
"Time_signature_engraver" } <<
{ \startStaff \clef treble \hideNotes |
es2^\markup { ossia } \omit PianoStaff.SpanBar | \omit Staff.BarLine \repeat
unfold 15 { es2 } \undo \omit Staff.BarLine \undo \omit PianoStaff.SpanBar |
\stopStaff }
{ \startStaff \clef bass \hideNotes | es2
\omit PianoStaff.SpanBar | \omit Staff.BarLine \repeat unfold 15 { es2 } \undo
\omit Staff.BarLine \undo \omit PianoStaff.SpanBar | \stopStaff }
>>
>>%% Bar 99 (end of ossia piano)
}
\score {
\new Staff = "Staff_violoncello" <<
\override
Staff.InstrumentName.self-alignment-X = #LEFT
\set Staff.instrumentName = \markup
\left-column \abs-fontsize #10 { Violoncello }
\set Staff.midiInstrument =
#"cello"
\VioloncelloMusic
>>
}
* sticking an ossia piano part into the cello music is an ugly hack, but
I have two simultaneous voices in each hand of the piano, forcing me to use
<< { } \\ { } >> blocks. These blocks break at %% Bar 95, and I
didn't know how to have the \context block extend across them.