lilypond-user
[Top][All Lists]
Advanced

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

Re: macro for \once\override


From: Wols Lists
Subject: Re: macro for \once\override
Date: Sat, 29 Aug 2020 11:19:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0

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'

Cheers,
Wol



reply via email to

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