To solve this problem, you first have to figure out that it has to do
with the key signature
(comment out the key signature in the ossia stave to see that the
problem disappears).
Once you have realized that, you have to figure out how to get rid of
the extra key
signature indication at the end of the previous line, which isn't
printed since the ossia
stave doesn't exist, but which unfortunately still influences the
position of the bar line.
The solution is to add a setting of explicitKeySignatureVisibility:
\new Staff \with {
alignAboveContext = #"1"
fontSize = #-4
\override StaffSymbol #'staff-space = #(magstep -4)
\override StaffSymbol #'thickness = #(magstep -4)
\remove "Time_signature_engraver"
explicitKeySignatureVisibility = #end-of-line-invisible
}
{ ... }
/Mats
Nick Payne wrote:
See attached. If I have an ossia at the beginning of a staff, the lines on
the preceding staff run past the final barline. How do I prevent this? I'm
creating the ossia with
<<
{
% normal notes here
}
\new Staff \with {
alignAboveContext = #"1"
fontSize = #-4
\override StaffSymbol #'staff-space = #(magstep -4)
\override StaffSymbol #'thickness = #(magstep -4)
\remove "Time_signature_engraver"
}
{
\clef "treble_8"
\key e \minor
% ossia notes here
}
>>
Nick
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user