[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to replace a number with variable inside a pair?
From: |
Jan-Peter Voigt |
Subject: |
Re: Is it possible to replace a number with variable inside a pair? |
Date: |
Thu, 26 Jul 2018 09:40:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Hi Risto,
you might go this way:
lineThickness = 5
\markup \override #`(thickness . ,lineThickness) \draw-hline
That is semi-quote the pair with ` (instead of ') and then "unquote" the
variable to retrieve the value with a comma (,)
HTH
Jan-Peter
Am 26.07.2018 um 09:35 schrieb Risto Vääräniemi:
> Hi,
>
> I tried the following:
>
> lineThickness = 5
> \markup \override #'(thickness . #lineThickness) \draw-hline
>
> But it seems I cannot give the variable inside the pair. This works:
>
> lineThicknessPair = #'(thickness . 5)
> \markup \override #lineThicknessPair \draw-hline
>
> Is there any way to make it work with just a single number variable? I
> even tried the variable without the '#' or replaced it with a '\'. I
> just got different errors.
>
> BR,
> Risto
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>