• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

Vorzeichen (KeySignature) enger zusammenrücken

Begonnen von fugenkomponist, Sonntag, 11. Mai 2014, 13:17

Vorheriges Thema - Nächstes Thema

fugenkomponist

Hallo,
hat jemand eine Idee, wie diese Vorzeichen näher zusammenrücken können? Eigentlich sollen einfach drei ♭ und ein ♯ über drei ♯ stehen, nicht so abwechselnd.
\version "2.18.2"

{
  \clef percussion
  \set Staff.keySignature = #`(((0 . 1) . ,FLAT)
                               ((-1 . 4) . ,SHARP)
                               ((0 . 1) . ,FLAT)
                               ((-1 . 4) . ,SHARP)
                               ((0 . 1) . ,FLAT)
                               ((-1 . 4) . ,SHARP)
                               ((0 . 1) . ,SHARP))
  c1
}

Viele Grüße,
Malte

Pierre

#1
Hallo Malte,

\score {
  \new Staff {
    \clef percussion
    \set Staff.keySignature = #`(((0 . 1) . ,FLAT)
                                 ((-1 . 4) . ,SHARP)
                                 ((0 . 1) . ,FLAT)
                                 ((-1 . 4) . ,SHARP)
                                 ((0 . 1) . ,FLAT)
                                 ((-1 . 4) . ,SHARP)
                                 ((0 . 1) . ,SHARP))
    c1
  }
  \layout {
    \context {
      \Staff
      \override KeySignature.stencil = #(lambda (grob)
           ly:key-signature-interface::print (grob-interpret-markup grob
               #{
                 \markup\raise #.5 \left-column {
                 \concat { \flat\hspace #.4 \flat\hspace #.4 \flat\hspace #.4 \sharp }
                 \vspace #-.3
                 \concat { \sharp\hspace #.3 \sharp\hspace #.3 \sharp }
                  }
               #}))
    }
  }
}


gruß
Pierre

fugenkomponist

Danke, das funktioniert :) Auch wenn man halt jedes Mal von Hand die passenden Werte suchen muss, aber das ist dann halt so ;)