lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a 11-line system


From: Nathan Ho
Subject: Re: Creating a 11-line system
Date: Fri, 22 Sep 2017 08:22:14 -0700
User-agent: Roundcube Webmail/1.1.2

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]