]> git.donarmstrong.com Git - lilypond.git/commit - scm/music-functions.scm
Issue 3313: Add the command \offset
authorDavid Nalesnik <david.nalesnik@gmail.com>
Fri, 12 Apr 2013 23:40:45 +0000 (18:40 -0500)
committerJanek Warchoł <lemniskata.bernoullego@gmail.com>
Sun, 13 Oct 2013 17:55:08 +0000 (19:55 +0200)
commita82d8622e6b1be36169de7d2fe1f9aa88618933b
tree1df95e536c10a44a5064785f6ed9395daa6d52c3
parent25ca54b640c067e2286a1d7ba47f24a1b4dc070e
Issue 3313: Add the command \offset

The ability to offset values of various properties would be a useful
enhancement of LilyPond.  Currently, this is possible for default values
of the property 'control-points using the \shape command.  The following
patch seeks to generalize the application of offsets to grob properties.
Both overrides and tweaks are supported, on the model of \shape and
\alterBroken.

Offsets are currently limited to three data types: number, number-pair,
and number-pair-list (this last is defined by this patch and represents
the type used, for example, by 'control-points).  Offsets are limited to
the properties listed in the grob descriptions contained in
`scm/define-grobs.scm'.  Offsets will be reckoned against an override
currently in effect; otherwise, the default setting from the grob
description will be used.
input/regression/offsets.ly [new file with mode: 0644]
ly/music-functions-init.ly
scm/c++.scm
scm/lily.scm
scm/music-functions.scm