]> git.donarmstrong.com Git - lilypond.git/commit
Function for overriding broken spanners
authorDavid Nalesnik <david.nalesnik@gmail.com>
Tue, 17 Jul 2012 22:17:59 +0000 (17:17 -0500)
committerPhil Holmes <mail@philholmes.net>
Tue, 24 Jul 2012 16:52:41 +0000 (17:52 +0100)
commitf7085cf9b2ff111b7d30c8a59e367c771a7e3c52
tree02352e0d6253fa04131caea68fb7bf064939f777
parenta229fafa17dfdc0638326fab4368fffcfbf38d2a
Function for overriding broken spanners

The music function \alterBroken is intended to facilitate overrides
applied independently to the pieces of broken spanners--one of the
perennial difficulties faced by users of LilyPond (addressed in
Extending 2.6:"Difficult Tweaks").  The function aims at generalization
by allowing the user to specify the name of the spanner and the property
to be overridden.

The function will override unbroken spanners, but it will ignore
non-spanners with a warning.

The function calls \override and may be prefaced by \once (or followed by
a \revert of the relevant property).
input/regression/alter-broken.ly [new file with mode: 0644]
ly/music-functions-init.ly
scm/music-functions.scm