Hi Kieren,

2016-04-26 19:01 GMT+02:00 Kieren MacMillan <kieren_macmil...@sympatico.ca>:
> 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

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

Reply via email to