On 8 July 2010 15:26, Nils Gey <den...@nilsgey.de> wrote:

> I often work with drone-instruments like bagpipes which need to know how to 
> tune their drones. In my handwritten notation I included the Drone indicator 
> below the keysig as simple text "A" or "A/E" (without absolute pitch).
>
> It should appear anytime the keysig appears. Key-changes, Start of the Staff 
> etc.
>
> How do I do that in Lilypond?

Override the stencil for KeySignature:

\relative c' {
  \once \override Staff.KeySignature #'stencil =
  #(lambda (grob)
     (ly:stencil-combine-at-edge
      (ly:key-signature-interface::print grob)
      Y DOWN
      (grob-interpret-markup grob (markup #:small "A/E"))
       ;; space between keysig and text
      1.5))
  \key a \major
  a1
}

Cheers,
Neil

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

Reply via email to