|
From: | Pierre Perol-Schneider |
Subject: | Re: Custom glyph depending on the 'glyph-name |
Date: | Wed, 17 Aug 2016 18:35:25 +0200 |
Hello Pierre,How did you solve that actually?Thanks!JMLe 16 août 2016 à 22:41, Pierre Perol-Schneider <address@hiddencom > a écrit :______________________________PierreOk I got it. Sorry for the noise.Cheers,2016-08-16 22:06 GMT+02:00 Pierre Perol-Schneider <address@hiddencom >:PierreCheers,Thanks in advance,Any idea?But nothing happend.Hi,I'd like to customize the clefs depending on their glyph-name:
%%
\version "2.19.46"
my-clef-G = \markup "G"
my-clef-F = \markup "F"
\score {
\new PianoStaff <<
\new Staff { c' }
\new Staff { \clef F c' }
>>
\layout {
\context {
\Score
\override Clef.stencil =
#(lambda (grob)
(let ((glyph (ly:grob-property grob 'glyph-name)))
(case glyph
(("clefs.G") (grob-interpret-markup grob my-clef-G))
(("clefs.F") (grob-interpret-markup grob my-clef-F))
(else (ly:clef::print grob)))))
}
}
}
%%_________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |