lilypond-user
[Top][All Lists]
Advanced

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

Re: Modifying Stencil for Clef


From: Pierre Perol-Schneider
Subject: Re: Modifying Stencil for Clef
Date: Sat, 23 Feb 2019 10:16:14 +0100

Hi Richard,
How about:

\version "2.18.2"

{
  c'
  %\once \override Staff.ClefModifier.stencil = #ly:text-interface::print
  %\once \override Staff.ClefModifier.text = \markup \normal-text "T"
  \once \override Staff.ClefModifier.stencil =
    #(lambda (grob) (grob-interpret-markup grob #{ \markup "T" #}))
  \clef "F_8"
  c
}

Cheers,
Pierre

Le ven. 22 févr. 2019 à 12:50, Richard Shann <address@hidden> a écrit :
I've been following up the idea of using markup as stencils:

http://lilypond.org/doc/v2.18/Documentation/notation/modifying-stencils

and have got it working for NoteHead and for Dots (which was my use-
case). But trying to generalize to more layout objects I ran into
trouble. This I expected would replace the change of clef with a "T"
but it does not:

\version "2.18.2"
{
  c'
  \once \override ClefModifier.stencil = #ly:text-interface::print
  \once \override ClefModifier.text = \markup{T}
  \clef bass
  c'
}

Any ideas?

Richard


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

reply via email to

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