Thanks, I will try this out ASAP!
Rutger
On 09/02/2016 11:52 AM, Thomas Morley wrote:
2016-09-02 11:44 GMT+02:00 Rutger Hofman <rut...@cs.vu.nl>:
I guess I have been too zealous in minimizing my example that still produces
a core dump. My original example is to have a bracketed keysig and later a
bracketed key change to c \major (i.e. key cancellation), like so:
{
\override Staff.KeySignature.stencil = #(lambda (grob) (bracketify-stencil
(ly:key-signature-interface::print grob) Y 0.1 0.2 0.1))
\key ges \major
ces4
\key c \major
c
}
In Harm's fix, there is no bracket around the \key c \major.
Indeed, why bracketify something not visible.
Though, you may want to have brackets around KeyCancellation:
%% here add my fix, then
{
\override Staff.KeyCancellation.stencil =
#(lambda (grob)
(bracketify-stencil (ly:key-signature-interface::print grob) Y 0.1 0.2 0.1))
\override Staff.KeySignature.stencil =
#(lambda (grob)
(bracketify-stencil (ly:key-signature-interface::print grob) Y 0.1 0.2 0.1))
\key ges \major
ces4
\key c \major
c
}
Cheers,
Harm
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond