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


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to