lilypond-user
[Top][All Lists]
Advanced

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

Re: "concatenating" tweaks


From: Thomas Morley
Subject: Re: "concatenating" tweaks
Date: Tue, 26 Apr 2016 19:28:48 +0200

Hi Kieren,

2016-04-26 19:01 GMT+02:00 Kieren MacMillan <address@hidden>:
> Hello all,
>
> The following works great:
>
> %%%%  SNIPPET BEGINS
> \version "2.19"
>
> tweaked-spanner =
>   \tweak color #red
>   \startTextSpan
>
> music = {
>   c''1\tweaked-spanner 1\stopTextSpan
> }
>
> \score { \music }
> %%%%  SNIPPET ENDS
>
> Now I want to have a number of different tweaked spanners which share a bunch 
> of tweaks. But the intuitive (?) extension doesn’t work:
>
> %%%%  SNIPPET BEGINS
> \version "2.19"
>
> shared-tweaks =
>   \tweak fontsize #12

You probably meant font-size.
But the expression is not complete. \tweak _needs_ the argument _what_
should be tweaked or \etc

>
> tweaked-spanner =
>   \shared-tweaks
>   \tweak color #red
>   \startTextSpan
>
> music = {
>   c''1\tweaked-spanner 1\stopTextSpan
> }
>
> \score { \music }
> %%%%  SNIPPET ENDS
>
> Can anything be done to make this work as intended/expected?

Thus:

\version "2.19.40"

shared-tweaks =
  \tweak font-size #12 \etc

tweaked-spanner =
  \shared-tweaks
  \tweak color #red
  \startTextSpan

music = {
  c''1\tweaked-spanner 1\stopTextSpan
}

\score { \music }

Cheers,
  Harm



reply via email to

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