[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Music function interfere with variable name
From: |
David Kastrup |
Subject: |
Re: Music function interfere with variable name |
Date: |
Fri, 11 Oct 2019 14:55:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
foxfanfare <address@hidden> writes:
> In my piano scores, I use a lot a music function which can draw little hook
> to indicate the hand separation. We discussed this in this post :
> http://lilypond.1069038.n5.nabble.com/Layout-of-a-piano-hand-indicator-tp184061p212748.html
>
> I currently use the code that Harm wrote last year. The problem I just
> encounter is when I use specific variable in my score, it could interfere
> with the function. I cannot use the X anymore, like X.title if I want a
> variable for the name of the 10th movement in my work. I guess it's related
> to the absciss in the function but I don't have the skill to understand it
> properly.
>
> My question is the following, can this function be corrected to avoid that
> bug or does that mean that I definitely cannot write anymore roman numbers
> in my variables? (note that the function works when I write "x" but crashes
> with "X").
Naming a variable X will likely crash LilyPond since X is already used
to designate the X axis and quite a bit of Scheme code depends on it.
Try using longer variable names.
--
David Kastrup