Next: , Previous: RhythmicStaff, Up: Contexts


Score

This is the top level notation context. No other context can contain a Score context. This context handles the administration of time signatures. It also makes sure that items such as clefs, time signatures, and key-signatures are aligned across staves.

You cannot explicitly instantiate a Score context (since it is not contained in any other context). It is instantiated automatically when an output definition (a \score or \layout block) is processed.

This context creates the following layout objects:

BarNumber, BreakAlignGroup, BreakAlignment, GraceSpacing, LeftEdge, MetronomeMark, NonMusicalPaperColumn, PaperColumn, ParenthesesItem, RehearsalMark, SpacingSpanner, SystemStartBar, SystemStartBrace, SystemStartBracket, SystemStartSquare and VerticalAlignment.

This context sets the following properties:

Context Score can contain Staff, FiguredBass, NoteNames, Devnull, PianoStaff, ChoirStaff, GrandStaff, ChordNames, Lyrics, DrumStaff, StaffGroup, MensuralStaff, GregorianTranscriptionStaff, VaticanaStaff, TabStaff, RhythmicStaff and FretBoards

This context is built from the following engravers:

Parenthesis_engraver
Parenthesize objects whose music cause has the parenthesize property.

This engraver creates the following layout objects: ParenthesesItem.

Tweak_engraver
Read the tweaks property from the originating event, and set properties.
Bar_number_engraver
A bar number is created whenever measurePosition is zero and when there is a bar line (ie. when whichBar is set. It is put on top of all staves, and appears only at left side of the staff. The staves are taken from stavesFound, which is maintained by Staff_collecting_engraver.

Properties (read)

currentBarNumber (integer)
Contains the current barnumber. This property is incremented at every bar line.
whichBar (string)
This property is read to determine what type of bar line to create.

Example:

               \set Staff.whichBar = "|:"
          

This will create a start-repeat bar in this staff only. Valid values are described in bar-line-interface.

stavesFound (list of grobs)
list of all staff-symbols found.
barNumberVisibility (procedure)
Procedure that takes an int and returns whether the corresponding bar number should be printed
This engraver creates the following layout objects: BarNumber.
Stanza_number_align_engraver
This engraver ensures that stanza numbers are neatly aligned.
Vertical_align_engraver
Catch groups (staffs, lyrics lines, etc.) and stack them vertically.

Properties (read)

alignAboveContext (string)
Where to insert newly created context in vertiical alignment.
alignBelowContext (string)
Where to insert newly created context in vertiical alignment.
This engraver creates the following layout objects: VerticalAlignment.
Grace_spacing_engraver
Bookkeeping of shortest starting and playing notes in grace note runs.

Properties (read)

currentMusicalColumn (layout object)
Grob that is X-parent to all non-breakable items (note heads, lyrics, etc.).
This engraver creates the following layout objects: GraceSpacing.
Spacing_engraver
make a SpacingSpanner and do bookkeeping of shortest starting and playing notes

Music types accepted:

spacing-section-event

Properties (read)

currentMusicalColumn (layout object)
Grob that is X-parent to all non-breakable items (note heads, lyrics, etc.).
currentCommandColumn (layout object)
Grob that is X-parent to all current breakable (clef, key signature, etc.) items.
proportionalNotationDuration (moment)
Global override for shortest-playing duration. This is used for switching on proportional notation.
This engraver creates the following layout objects: SpacingSpanner.
Break_align_engraver
Align grobs with corresponding break-align-symbols into groups, and order the groups according to breakAlignOrder. The left edge of the alignment gets a separate group, with a symbol left-edge.

This engraver creates the following layout objects: BreakAlignGroup, BreakAlignment and LeftEdge.

Metronome_mark_engraver
Engrave metro nome marking. This delegates the formatting work to the function in the metronomeMarkFormatter property. The mark is put over all staves. The staves are taken from the stavesFound property, which is maintained by Staff_collecting_engraver.

Properties (read)

stavesFound (list of grobs)
list of all staff-symbols found.
metronomeMarkFormatter (procedure)
How to produce a metronome markup. Called with 2 arguments, event and context.
tempoUnitDuration (duration)
Unit for specifying tempo.
tempoUnitCount (number)
Count for specifying tempo.
This engraver creates the following layout objects: MetronomeMark.
Mark_engraver
This engraver will create RehearsalMark objects. It puts them on top of all staves (which is taken from the property stavesFound). If moving this engraver to a different context, Staff_collecting_engraver must move along, otherwise all marksend up on the same Y-location

Music types accepted:

mark-event

Properties (read)

markFormatter (procedure)
Procedure taking as arguments context and rehearsal mark. It should return the formatted mark as a markup object.
rehearsalMark (integer)
The last rehearsal mark printed.
stavesFound (list of grobs)
list of all staff-symbols found.
This engraver creates the following layout objects: RehearsalMark.
System_start_delimiter_engraver
Creates a system start delimiter (ie. SystemStart{Bar, Brace, Bracket} spanner

Properties (read)

systemStartDelimiter (symbol)
Which grob to make for the start of the system/staff? Set to SystemStartBrace, SystemStartBracket or SystemStartBar.
systemStartDelimiterHierarchy (pair)
A nested list, indicating the nesting of a start delimiters.
currentCommandColumn (layout object)
Grob that is X-parent to all current breakable (clef, key signature, etc.) items.
This engraver creates the following layout objects: SystemStartBar, SystemStartBrace, SystemStartBracket and SystemStartSquare.
Output_property_engraver
Apply a procedure to any grob acknowledged.

Music types accepted:

apply-output-event

Default_bar_line_engraver
This engraver determines what kind of automatic bar lines should be produced, and sets whichBar accordingly. It should be at the same level as Timing_translator.

Properties (read)

automaticBars (boolean)
If set to true then bar lines will not be printed automatically; they must be explicitly created with \bar command. Unlike the \cadenza keyword, measures are still counted. Bar generation will resume according to that count if this property is unset.
barAlways (boolean)
If set to true a bar line is drawn after each note.
defaultBarType (string)
Sets the default type of bar line. See whichBar for information on available bar types.

This variable is read by Timing_translator at Score level.

measureLength (moment)
Length of one measure in the current time signature.
whichBar (string)
This property is read to determine what type of bar line to create.

Example:

               \set Staff.whichBar = "|:"
          

This will create a start-repeat bar in this staff only. Valid values are described in bar-line-interface.

measurePosition (moment)
How much of the current measure have we had. This can be set manually to create incomplete measures.
Properties (write)
automaticBars (boolean)
If set to true then bar lines will not be printed automatically; they must be explicitly created with \bar command. Unlike the \cadenza keyword, measures are still counted. Bar generation will resume according to that count if this property is unset.

Timing_translator
This engraver adds the alias Timing to its containing context.Responsible for synchronizing timing information from staves. Normally in Score. In order to create polyrhythmic music, this engraver should be removed from Score and placed in Staff.

This engraver adds the alias Timing to its containing context.

Properties (read)

internalBarNumber (integer)
Contains the current barnumber. This property is used for internal timekeeping, among others by the Accidental_engraver.
currentBarNumber (integer)
Contains the current barnumber. This property is incremented at every bar line.
measureLength (moment)
Length of one measure in the current time signature.
measurePosition (moment)
How much of the current measure have we had. This can be set manually to create incomplete measures.
Properties (write)
internalBarNumber (integer)
Contains the current barnumber. This property is used for internal timekeeping, among others by the Accidental_engraver.
currentBarNumber (integer)
Contains the current barnumber. This property is incremented at every bar line.
measurePosition (moment)
How much of the current measure have we had. This can be set manually to create incomplete measures.

Staff_collecting_engraver
Maintain the stavesFound variable

Properties (read)

stavesFound (list of grobs)
list of all staff-symbols found.
Properties (write)
stavesFound (list of grobs)
list of all staff-symbols found.

Repeat_acknowledge_engraver
Acknowledge repeated music, and convert the contents of repeatCommands ainto an appropriate setting for whichBar.

Properties (read)

repeatCommands (list)
This property is read to find any command of the form (volta . x), where x is a string or #f
whichBar (string)
This property is read to determine what type of bar line to create.

Example:

               \set Staff.whichBar = "|:"
          

This will create a start-repeat bar in this staff only. Valid values are described in bar-line-interface.


Vertically_spaced_contexts_engraver

Properties (read)

verticallySpacedContexts (list)
List of symbols, containing context names whose vertical axis groups should be taken into account for vertical spacing of systems.
Properties (write)
verticallySpacedContexts (list)
List of symbols, containing context names whose vertical axis groups should be taken into account for vertical spacing of systems.

Paper_column_engraver
Takes care of generating columns.

This engraver decides whether a column is breakable. The default is that a column is always breakable. However, every Bar_engraver that does not have a barline at a certain point will set forbidBreaks in the score context to stop linebreaks. In practice, this means that you can make a breakpoint by creating a barline (assuming that there are no beams or notes that prevent a breakpoint.)

Music types accepted:

break-event

Properties (read)

forbidBreak (boolean)
If set to ##t, prevent a line break at this point.
Properties (write)
forbidBreak (boolean)
If set to ##t, prevent a line break at this point.
currentCommandColumn (layout object)
Grob that is X-parent to all current breakable (clef, key signature, etc.) items.
currentMusicalColumn (layout object)
Grob that is X-parent to all non-breakable items (note heads, lyrics, etc.).
This engraver creates the following layout objects: NonMusicalPaperColumn and PaperColumn.


Next: , Previous: RhythmicStaff, Up: Contexts

This page is for LilyPond-2.10.33 (stable-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.