[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Encapsulating tweak and markup in a variable
From: |
Klaus Blum |
Subject: |
Re: Encapsulating tweak and markup in a variable |
Date: |
Fri, 13 Feb 2015 07:47:40 -0700 (MST) |
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.