lilypond-user
[Top][All Lists]
Advanced

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

Re: Encapsulating tweak and markup in a variable


From: Jacques Menu
Subject: Re: Encapsulating tweak and markup in a variable
Date: Mon, 16 Feb 2015 20:58:10 +0100

Hello Klaus and Pierre,

Magnificent, didn’t think of those possibilities…

Thanks a lot!

JM

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




reply via email to

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