bug-lilypond
[Top][All Lists]
Advanced

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

Re: \alterBroken syntax


From: Simon Albrecht
Subject: Re: \alterBroken syntax
Date: Tue, 28 Mar 2017 04:20:50 +0200

Am 28.03.2017 um 03:31 schrieb Dan Eble:
Am 27.03.2017 um 23:32 schrieb Dan Eble:
This is the current syntax:
      \alterBroken property-name #’(before after) GrobName
This would be more consistent with other things:
      \alterBroken GrobName.property-name #’(before after)

\alterBroken in that respect is not to be compared with \override or \tweak, 
but with \shape or \offset.
I imagine that would come as a surprise to the documentation author
who wrote this:

     This command can produce either an \override or a \tweak of
     a spanner property.

But that’s exactly the point: \alterBroken (and \shape and \offset) can act _both_ as an override _and_ a tweak, so its syntax must be different from either one of these. It doesn’t work with symbol-list-or-symbol? for the first argument, but instead has symbol-list-or-music? for the last argument: if that’s a symbol-list, the override form is used, if it’s music, the tweak form is used.

and this:

     The leading hyphen must be used with the \tweak form. Do not add
     it when \alterBroken is used as an \override.

If the tweak form is used, the parser needs to know beforehand that \alterBroken wraps up a post event, so the leading hyphen is required.

Best, Simon



reply via email to

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