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

List:       lilypond-user
Subject:    Re: Creating a 11-line system
From:       Nathan Ho <nathan () snappizz ! com>
Date:       2017-09-22 15:22:14
Message-ID: f49b1cfaf4d790f557f9945848f6db27 () snappizz ! com
[Download RAW message or body]

On 2017-09-22 00:55, Ståle Ødegården wrote:
> Thank you, this is excactly what I was looking for!
> 
> I have another challenge: making the key signature also mimic a
> standard PianoStaff setup.
> I have a partial solution with  «\override KeySignature.flat-positions
> = #'((-10 . 10)) » and similar, but I don't want the  «extra »
> accidentals in the middle.
> 
> How do I do this?

hi Ståle,

you can intercept the stencil and tell it to print the default key 
signature twice with different translations:

{
   \override Staff.StaffSymbol.line-count = #11

   \override Staff.KeySignature.stencil =
     #(lambda (grob)
        (let ((stencil (ly:key-signature-interface::print grob)))
          (ly:stencil-add
            (ly:stencil-translate-axis stencil 3.5 Y)
            (ly:stencil-translate-axis stencil -3.5 Y))))

   \override Staff.Clef.stencil = #ly:text-interface::print
   \override Staff.Clef.text =
     \markup
       \combine
         \raise #2 \musicglyph #"clefs.G"
         \lower #2 \musicglyph #"clefs.F"
   \clef alto
   \key es \minor
   c'1
}


nathan



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

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

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