[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: macro for \once\override
From: |
David Kastrup |
Subject: |
Re: macro for \once\override |
Date: |
Sat, 29 Aug 2020 15:37:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Aaron Hill <lilypond@hillvisions.com> writes:
> On 2020-08-29 5:23 am, David Kastrup wrote:
>> Wols Lists <antlists@youngman.org.uk> writes:
>>
>>> On 29/08/20 05:45, Werner LEMBERG wrote:
>>>> \once \override FretBoard.size = #'1.0
>>>> \once \override FretBoard.fret-diagram-details.barre-type =
>>>> #'straight
>>>> \once \override FretBoard.fret-diagram-details.dot-color =
>>>> #'black
>>>> \once \override FretBoard.fret-diagram-details.finger-code =
>>>> #'below-string
>>>> c'
>>> Unfortunately this might well require re-writing the parser, but it
>>> struck me it might be a nice idea to nick an idea from other object
>>> oriented languages as follows ...
>>> \once \override FretBoard.size = #'1.0
>>> \once \override \using FretBoard.fret-diagram-details {
>>> .barre-type = #'straight
>>> .dot-color = #'black
>>> .finger-code = #'below-string
>>> }
>>> c'
>> What's wrong with
>> \once \override FretBoard.fret-diagram-details =
>> #'((barre-type . straight)
>> (dot-color . black)
>> (finger-code . below-string))
>> I mean, I am as proud as anybody that separate subproperty overrides
>> don't cause LilyPond to go down in flames any more, but this is an
>> alist, after all.
>
> In my testing, that overwrites any existing overrides on the
> fret-diagram-details property, so it is not quite the same thing.
The only preexisting fret-diagram-details entry according to the
internals guide is finger-code , and that one's in there.
--
David Kastrup
- Re: macro for \once\override, (continued)
- Mailserver problem?, John Helly, 2020/08/29
- Re: Mailserver problem?, Andrew Bernard, 2020/08/30
- Re: macro for \once\override, Andrew Bernard, 2020/08/28
- Re: macro for \once\override, Werner LEMBERG, 2020/08/29
- Re: macro for \once\override, Wols Lists, 2020/08/29
- Re: macro for \once\override, David Kastrup, 2020/08/29
- Re: macro for \once\override, Aaron Hill, 2020/08/29
- Re: macro for \once\override,
David Kastrup <=
- Re: macro for \once\override, Aaron Hill, 2020/08/29
- Re: macro for \once\override, Aaron Hill, 2020/08/29
- Re: macro for \once\override, David Kastrup, 2020/08/29
- Re: macro for \once\override, Aaron Hill, 2020/08/29
- Re: macro for \once\override, David Kastrup, 2020/08/29
- Re: macro for \once\override, Aaron Hill, 2020/08/29
- Re: macro for \once\override, Aaron Hill, 2020/08/29