bug-lilypond
[Top][All Lists]
Advanced

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

Re: Enhancement: Implement parenthesizing spanners


From: Simon Albrecht
Subject: Re: Enhancement: Implement parenthesizing spanners
Date: Mon, 17 Aug 2015 02:22:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

Am 17.08.2015 um 00:53 schrieb Thomas Morley:
2015-08-17 0:18 GMT+02:00 Simon Albrecht <address@hidden>:
Lily is being very honest and makes a kind warning telling us that she
doesn’t know how to parenthesize spanners. But it would be really nice if we
could teach her that :-)

%%%%%%%%%%%%%%%%%%%%%%%%%%
\relative { c''-\parenthesize \> c c c
   c2\! -\parenthesize ~ c
}
%%%%%%%%%%%%%%%%%%%%%%%%%%

<https://code.google.com/p/lilypond/issues/detail?id=4565>

I once made the attached code.
It still compiles. You will observe several warnings, they are intended ;)
I never had the time and energy to finish it.
May be a good starting point, though.
I made an updated version for 2.19.24 and newer (…), which you find attached. Main differences:
– syntax updates, through convert-ly and manual
– code reformatting (minor)
– Both music functions now take a symbol list instead of a string, which simplifies the code.

The only noticeable flaw I found is the interleaving tie parentheses and the collisions with \par Stem or \par Flag. Also, with the first clef, inside padding is too large and outside padding too small in my eyes.
But other than that it works very well. Thanks again!
Simon

Attachment: par-grobs-06.ly
Description: Text Data


reply via email to

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