]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2445: Add measure counter to LilyPond
authorDavid Nalesnik <david.nalesnik@gmail.com>
Sat, 8 Sep 2012 12:38:28 +0000 (07:38 -0500)
committerDavid Kastrup <dak@gnu.org>
Mon, 5 Nov 2012 13:25:34 +0000 (14:25 +0100)
commit0c6b9c0a459a2116e028f533ef978bf7d918ef00
treed7654cca118df0d94495561744620da3e72c8007
parent56c1aa842664748f73e4da2f9e58ab9bf3a7f652
Issue 2445: Add measure counter to LilyPond

These changes implement a new grob, `MeasureCounter,' a spanner used to
number groups of successive measures.

This commit:
- defines a new event class, `MeasureCounterEvent.'
- defines a new interface, `measure-counter-interface.' This
interface contains `count-from,' the number which begins the count, and
`columns,' which contains the NonMusicalPaperColumn grobs forming
the bounds of the new spanner.
- defines the stencil with a function in scm/music-functions.scm.
- defines an engraver, `Measure_counter_engraver.'  This engraver
is written in Scheme and placed in a new file, scm/scheme-engravers.scm,
which is added to the load list in scm/lily.scm.
- sets various grob properties to default values.
- provides two commands to frame the measures to be counted:
\startMeasureCount and \stopMeasureCount.
- provides a regression test.
input/regression/measure-counter.ly [new file with mode: 0644]
ly/spanners-init.ly
scm/define-event-classes.scm
scm/define-grob-interfaces.scm
scm/define-grob-properties.scm
scm/define-grobs.scm
scm/define-music-types.scm
scm/lily.scm
scm/music-functions.scm
scm/scheme-engravers.scm [new file with mode: 0644]