lilypond-user
[Top][All Lists]
Advanced

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

Re: Double key signature


From: James
Subject: Re: Double key signature
Date: Fri, 27 Jun 2014 10:11:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 25/06/14 04:14, Keith OHara wrote:
Pierre Perol-Schneider <pierre.schneider.paris <at> gmail.com> writes:

On the french list we are working on a Merulo score with an 8 lines
staff, 2 clefs and 2 key signature

As you can notice, I still have to manually set the distance between the
key signatures.

LilyPond supports custom key signatures, and will print this for d\minor
if you ask for an extended range of printed flats:

  \new Staff
   \with {
     \override StaffSymbol.line-count = #8
     \override KeySignature.flat-positions = #'((-7 . 6))
     \override KeyCancellation.flat-positions = #'((-7 . 6))
     % presumably sharps are also printed in both octaves
     \override KeySignature.sharp-positions = #'((-6 . 7))
     \override KeyCancellation.sharp-positions = #'((-6 . 7))
   \override Clef.stencil = #
   (lambda (grob)(grob-interpret-markup grob
   #{ \markup\combine
     \musicglyph #"clefs.C"
     \translate #'(0.9 . -2) \musicglyph #"clefs.F"
    #}))
     clefPosition = #1
     middleCPosition = #1
     middleCClefPosition = #1
   } {
   \key d\minor
   \time 4/4 R1
  }

You might like \translate, in units of staff spaces, in place of \vspace.


_______________________________________________

Thanks Keith, I've added that as a snippet and in the Notation Reference

http://code.google.com/p/lilypond/issues/detail?id=3976

James



reply via email to

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