Hello Klaus and Pierre,

Magnificent, didn’t think of those possibilities…

Thanks a lot!

JM

> Le 13 févr. 2015 à 15:47, Klaus Blum <benbigno...@gmx.de> a écrit :
> 
> 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
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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

Reply via email to