]> git.donarmstrong.com Git - lilypond.git/commit
Use callback to retrieve OctavateEight break-visibility from clef
authorReinhold Kainhofer <reinhold@kainhofer.com>
Tue, 28 Dec 2010 20:46:15 +0000 (21:46 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 29 Dec 2010 01:04:23 +0000 (02:04 +0100)
commit9551796a06445e9570d5481a73aff11f1d259568
treefc6d91839fbb19beb152488d8b4d2c6192a2f7b9
parent3703bb049e012d1f4c697e885e1c9d53dbcbb182
Use callback to retrieve OctavateEight break-visibility from clef

Do not explicitly assign break-visibility to the OctavateEight,
use a callback to retrieve from clef. For one, this allows the user
to override the clef's break-visibility and affect the OctavateEight
without an explicit setting for it. On the other hand, by overriding
the break-visibility from the callback to a custom value (e.g.
all-invisible), this makes it finally possible to hide 8 from
a treble_8 clef for a tenor piece altogether, while keeping
the correct pitch (for MIDI etc.).
Documentation/notation/changing-defaults.itely
input/regression/clef-oct-visibility.ly [new file with mode: 0644]
lily/clef-engraver.cc
scm/define-grobs.scm
scm/output-lib.scm