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: Pierre Perol-Schneider
Subject: Re: Encapsulating tweak and markup in a variable
Date: Fri, 13 Feb 2015 15:43:49 +0100

Hi Jacques, Hi Klaus,

You can do also :

%%%%%%%%%%%%%%
\version "2.18.2"

UN_E = -\tweak self-alignment-X #CENTER -\markup\large\bold\with-color #magenta "1E"
 
{
  g2 \mf ^\UN_E
}

%%%%%%%%%%%%%%


Cheers,
Pierre

2015-02-13 15:36 GMT+01:00 Klaus Blum <address@hidden>:
Salut Jacques,

defining your command as a function should do the trick:

%---------------------------------------------------

\version "2.18.2"

UN_E = #(define-music-function (parser location) ()
#{
  -\tweak TextScript.self-alignment-X #CENTER
  -\markup\large\bold\with-color #magenta "1E"
#})

{g2 \mf ^\UN_E}

%----------------------------------------------------

Cheers,
Klaus



--
View this message in context: http://lilypond.1069038.n5.nabble.com/Encapsulating-tweak-and-markup-in-a-variable-tp171826p171827.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]