lilypond-devel
[Top][All Lists]
Advanced

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

Re: Can't use direction names in (case)


From: Jean Abou Samra
Subject: Re: Can't use direction names in (case)
Date: Sun, 12 Jun 2022 13:29:31 +0200

> Le 12 juin 2022 à 13:03, Dan Eble <dan@lyric.works> a écrit :
> 
> This not do what I intended:
> 
> ```
>  (case (ly:item-break-dir grob)
>    ((LEFT) (ly:grob-property grob 'glyph-left))
>    ((RIGHT) (ly:grob-property grob 'glyph-right))
>    (else (ly:grob-property grob 'glyph))))
> ```
> 
> This does:
> 
> ```
>  (case (ly:item-break-dir grob)
>    ((-1) (ly:grob-property grob 'glyph-left))
>    ((1) (ly:grob-property grob 'glyph-right))
>    (else (ly:grob-property grob 'glyph))))
> ```
> 
> Why?
>
> Dan
> 


You’re matching against the literal symbols ‘LEFT and ‘RIGHT.


Jean






reply via email to

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