lilypond-user
[Top][All Lists]
Advanced

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

Re: Use variable to simplify colorizing specific notes


From: David Kastrup
Subject: Re: Use variable to simplify colorizing specific notes
Date: Sun, 17 Jul 2016 23:06:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Noeck <address@hidden> writes:

>> However I haven't found any variant of this that works.
>
>
> Hi Jim,
>
> this works for me:
>
>
> \version "2.19.36"
>
> stable = \tweak #'color #red \etc
>
> {
>   a \stable b
> }

The 2.18 equivalent is

stable =
#(define-music-function (parser location m) (ly:music?)
   #{ \tweak color #red #m #})

\etc is merely a shorthand for that which tends to go nicely with
tweaks.

-- 
David Kastrup



reply via email to

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