[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Parenthesizing multiple events
From:       Luca Fascione <l.fascione () gmail ! com>
Date:       2023-11-20 16:00:28
Message-ID: CAN3Q5NjuD94LJHn3jn7YmQafCsxtHyeYYnxhdRd2jibU9MyQCg () mail ! gmail ! com
[Download RAW message or body]

Lovely, thank you Knute
L

On Mon, 20 Nov 2023, 16:11 Knute Snortum, <ksnortum@gmail.com> wrote:

> On Mon, Nov 20, 2023 at 6:34 AM Luca Fascione <l.fascione@gmail.com>
> wrote:
>
>> Did this change between 22 and 24?
>> Is there somewhere I can go to see the implementation for the LSR that
>> used 2.22?
>>
>> L
>>
>> On Mon, 20 Nov 2023, 15:07 Knute Snortum, <ksnortum@gmail.com> wrote:
>>
>>> On Mon, Nov 20, 2023 at 4:35 AM Luca Fascione <l.fascione@gmail.com>
>>> wrote:
>>>
>>>> Also,
>>>> it doesn't seem to actually work on 2.22 (see below)
>>>>
>>>> How does this even compile on the LSR?
>>>>
>>>
>>> The LSR uses LilyPond 2.24.2, which compiles the source without error.
>>>
>>
> I searched for the original post for the LSR and upgraded it only to
> 2.22.  If you're not going to upgrade LilyPond to 2.24.3, then try this:
>
> \version "2.22.0"
>
> startParenthesis = {
> \once \override ParenthesesItem.stencils = #(lambda (grob)
> (let ((par-list (parentheses-item::calc-parenthesis-stencils grob))
> (right-par (grob-interpret-markup grob (markup #:null))))
> (list (car par-list)right-par )))
> }
>
> endParenthesis = {
> \once \override ParenthesesItem.stencils = #(lambda (grob)
> (let ((par-list (parentheses-item::calc-parenthesis-stencils grob))
> (left-par (grob-interpret-markup grob (markup #:null))))
> (list left-par (cadr par-list))))
> }
>
> {
>   \new ChordNames {
>     \chordmode {
>       \startParenthesis \parenthesize a:m7 \endParenthesis \parenthesize
> d:7
>     }
>   }
> }
>
> --
> Knute Snortum
>
>

[Attachment #3 (text/html)]

<div dir="auto">Lovely, thank you Knute<div dir="auto">L</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 20 Nov 2023, 16:11 \
Knute Snortum, &lt;<a href="mailto:ksnortum@gmail.com">ksnortum@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">On \
Mon, Nov 20, 2023 at 6:34 AM Luca Fascione &lt;<a \
href="mailto:l.fascione@gmail.com" target="_blank" \
rel="noreferrer">l.fascione@gmail.com</a>&gt; wrote:<br></div><div \
class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div \
dir="auto"><div>Did this change between 22 and 24?</div><div dir="auto">Is there \
somewhere I can go to see the implementation for the LSR that used 2.22?</div><div \
dir="auto"><br></div><div dir="auto">L<br><br><div class="gmail_quote" \
dir="auto"><div dir="ltr" class="gmail_attr">On Mon, 20 Nov 2023, 15:07 Knute \
Snortum, &lt;<a href="mailto:ksnortum@gmail.com" target="_blank" \
rel="noreferrer">ksnortum@gmail.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><div dir="ltr" \
class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>On Mon, Nov 20, 2023 at \
4:35 AM Luca Fascione &lt;<a href="mailto:l.fascione@gmail.com" rel="noreferrer \
noreferrer" target="_blank">l.fascione@gmail.com</a>&gt; \
wrote:<br></div></div></div></div></div></div><div class="gmail_quote"><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div \
style="font-family:arial,helvetica,sans-serif">Also,</div><div \
style="font-family:arial,helvetica,sans-serif">it doesn&#39;t seem to actually work \
on 2.22 (see below)</div><div \
style="font-family:arial,helvetica,sans-serif"><br></div><div \
style="font-family:arial,helvetica,sans-serif">How does this even compile on the \
LSR?</div></div></blockquote><div><br></div><div>The LSR uses LilyPond 2.24.2, which \
compiles the source without error.  \
</div></div></div></blockquote></div></div></div></blockquote><div><br></div><div>I \
searched for the original post for the LSR and upgraded it only to 2.22.   If \
you&#39;re not going to upgrade LilyPond to 2.24.3, then try \
this:</div><div><br></div>\version &quot;2.22.0&quot;<br><br>startParenthesis = \
{<br>\once \override ParenthesesItem.stencils = #(lambda (grob)<br>(let ((par-list \
(parentheses-item::calc-parenthesis-stencils grob))<br>(right-par \
(grob-interpret-markup grob (markup #:null))))<br>(list (car par-list)right-par \
)))<br>}<br><br>endParenthesis = {<br>\once \override ParenthesesItem.stencils = \
#(lambda (grob)<br>(let ((par-list (parentheses-item::calc-parenthesis-stencils \
grob))<br>(left-par (grob-interpret-markup grob (markup #:null))))<br>(list left-par \
(cadr par-list))))<br>}<br><br>{<br>   \new ChordNames { <br>      \chordmode { <br>  \
\startParenthesis \parenthesize a:m7 \endParenthesis \parenthesize d:7   <br>      } \
<br>   }<br>}<br><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div \
dir="ltr"><div><br></div><div>--</div><div>Knute \
Snortum</div><div><br></div></div></div></div></div></div></div></div> \
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic