lilypond-user
[Top][All Lists]
Advanced

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

Re: Define new articulation with markup or path (instead of glyph)


From: Urs Liska
Subject: Re: Define new articulation with markup or path (instead of glyph)
Date: Sun, 30 Sep 2018 12:59:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1



Am 30.09.2018 um 12:08 schrieb Lukas-Fabian Moser:
Hi Urs,

    upbow =
    #(define-music-function ()()
       #{
         \tweak self-alignment-X #CENTER
         -\markup "hin."
       #})

because

    c4 \upbow

will fail with the complaint about an unexpected post-event (I have to write -\upbow)


If you use define-event-function instead of define-music-function, you may write c4 \upbow.

Thank you, this helps.
Since this is a no-argument function it seems acceptable to handle the horizontal alignment by replacing the self-alignment-X tweak with a manually set X-offset tweak.

Urs


Best
Lukas




reply via email to

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