lilypond-user
[Top][All Lists]
Advanced

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

Problem to write a function for markup


From: Jacques Menu
Subject: Problem to write a function for markup
Date: Tue, 25 Nov 2014 23:21:12 +0100

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:

#music
^\markup{\large\bold #doigte}

Thanks for your help!

JM

--

Jacques Menu
Ch. de la Pierre 12
1023 Crissier

mailto:address@hidden





reply via email to

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