P.S.: You can also pass parameters to that function:
% -----------------------------------------------
\version "2.18.2"
F = #(define-music-function (parser location text) (string?)
#{
-\tweak TextScript.self-alignment-X #CENTER
-\markup\large\bold\with-color #magenta $text
#})
{g2 \mf ^\F"1E"}
% ----------------- or: -----------------------
\version "2.18.2"
F = #(define-music-function (parser location col text) (color? string?)
#{
-\tweak TextScript.self-alignment-X #CENTER
-\markup\large\bold\with-color $col $text
#})
{g2 \mf ^\F #magenta "1E"}
% ------------------------------------------------
...just discovered Pierre's response. That's really easier!
Cheers,
Klaus
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Encapsulating-tweak-and-markup-in-a-variable-tp171826p171829.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user