|
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: /Users/menu/Documents/LaTeX/PartitionsLilypond/FunctionForMarkupProblem.ly:9:12: Erreur : syntax error, unexpected '^' #music ^\markup{\large\bold #doigte} Thanks for your help! |
[Prev in Thread] | Current Thread | [Next in Thread] |