[Top][All Lists]

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

Re: Schenkerian analysis diagram

From: Simon Albrecht
Subject: Re: Schenkerian analysis diagram
Date: Fri, 27 Apr 2018 15:54:21 +0200

On 26.04.2018 23:48, Jérôme Plût wrote:
I don’t think you need to patch LilyPond. Have a look at

You can just redefine those.
Thanks for the pointers! I did not know that you could play with the
lexer by just assigning to strings, but this seems quite limited (I
can assign to "\\*" or "@", but neither to "@+" nor to "@foo", and
anything starting with a dash is also off-limits).

On the other hand, the dashHat etc. mechanisms are hard-coded in
lily/parser.yy (at the script_abbreviation label), so this is the
place I would need to touch to add any extra shortcuts. At first sight
it seems that enlarging the list to -<CHAR> where <CHAR> is anything
different from {backslash, space, digits, #, $} would not interfere
with anything (since these are currently syntax errors anyway), is
this correct?


That would be a question for David K.

Best, Simon

reply via email to

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