[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-bug
Subject:    Re: Bracketized key signature: \key c \major causes a core dump
From:       Rutger Hofman <rutger () cs ! vu ! nl>
Date:       2016-09-02 10:26:44
Message-ID: 676f159a-3459-ee53-f209-f66534803a65 () cs ! vu ! nl
[Download RAW message or body]

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 <rutger@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic