[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Can't use direction names in (case)
From: |
Dan Eble |
Subject: |
Can't use direction names in (case) |
Date: |
Sun, 12 Jun 2022 07:03:03 -0400 |
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
- Can't use direction names in (case),
Dan Eble <=