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

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

Reply via email to