Hi All,

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

*
http://lilypond-french-users.1298960.n2.nabble.com/Portee-a-huit-lignes-deux-clefs-et-deux-bemols-tt7581415.html

*
http://lilypond-french-users.1298960.n2.nabble.com/file/n7581418/merulo.png

Herewith is my last piece of code. As you can notice, I still have to
manually set the distance between the key signatures.

Has anyone any brilliant idea/other way how to come to this 8 lines staff ?

Thanks in advance,
Pierre
\version "2.18.2"

global = {
  \key d\minor
  \time 4/4
}

high = \relative c' {
  c1 r4 b a g g1
}

low = \relative c {
   f1 b  r4 f e d
}

\score {
  \new Staff
  \with {
     \override StaffSymbol.line-count = #8
     clefGlyph = #"clefs.C"
     clefPosition = #1
     middleCPosition = #1
     middleCClefPosition = #1
     \override Clef.stencil = 
       #(lambda (grob)(grob-interpret-markup grob #{ 
         \markup\column {
            \fontsize # -1 {
              \musicglyph #"clefs.C_change" 
              \vspace #-.32 
              \musicglyph #"clefs.F_change" 
            }
          } #}))
     \override KeySignature.stencil = 
       #(lambda (grob)(grob-interpret-markup grob #{ 
          \markup\translate #'(-10 . -.01)
            \column {
             \score { 
                \new Staff 
                \global
                \layout {
                  \context {
                    \Score
                    \omit StaffSymbol
                    \omit Clef
                    \omit TimeSignature
                  }
                }
              }
              \vspace #-0.16 % !! à régler en fonction de l'armure !!
              \score { 
                \new Staff 
                \global
                \layout {
                  \context {
                    \Score
                    \omit StaffSymbol
                    \omit Clef
                    \omit TimeSignature
                  }
                }
              }
            } #}))
  }
  {
    \global
    << \high \\ \low >>
  }
  \layout {}
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to