Hello folks,

I tried the following to obtain a centered, colored fingering indication:

%%%%%%%%%%%%%%%%
\version "2.18.2"

doigte =
#(define-music-function
(parser location music doigte)
(ly:music? markup?)
#{
\once\override TextScript.self-alignment-X = #CENTER
#music ^\markup{\large\bold #doigte}
#})

{
\clef "bass" \key as \major \time 4/4 | % 1
\tempo "March Tempo" 4 = 104-108

\once\override TextScript.self-alignment-X = #CENTER
\once\override TextScript.color = #blue
f8 \mf ^\markup{\large\bold "3D"}
% \doigte f8 "3D" \mf
}
%%%%%%%%%%%%%%%%

but calling the function with:

\doigte f8 "3D"

leads to error:

/Users/menu/Documents/LaTeX/PartitionsLilypond/FunctionForMarkupProblem.ly:9:12 
<applewebdata://00514FEF-AE28-46AA-88B5-D222FF8FC2C5/0>: Erreur : syntax error, 
unexpected '^'
#music
^\markup{\large\bold #doigte}

Thanks for your help!

JM

--

Jacques Menu
Ch. de la Pierre 12
1023 Crissier

mailto:imj-...@bluewin.ch




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

Reply via email to