[ << Translation ] | [Top][Contents][Index] | [ Backend >> ] |
[ < RhythmicStaff ] | [ Up : Contexts ] | [ Staff > ] |
2.1.31 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.
An alias called Timing
is established by the
Timing_translator
in whatever context it is initialized, and
the timing variables are then copied from wherever Timing
had been previously established. The alias at Score
level
provides a target for initializing Timing
variables in
layout definitions before any Timing_translator
has been
run.
This context also accepts commands for the following context(s): Timing.
This context creates the following layout object(s):
BarNumber
, BreakAlignGroup
, BreakAlignment
, CenteredBarNumber
, CenteredBarNumberLineSpanner
, CodaMark
, ControlPoint
, ControlPolygon
, Footnote
, GraceSpacing
, JumpScript
, LeftEdge
, MetronomeMark
, NonMusicalPaperColumn
, PaperColumn
, Parentheses
, RehearsalMark
, SectionLabel
, SegnoMark
, SpacingSpanner
, StaffGrouper
, SystemStartBar
, SystemStartBrace
, SystemStartBracket
, SystemStartSquare
, TextMark
, VerticalAlignment
, VoltaBracket
and VoltaBracketSpanner
.
This context sets the following properties:
- Set context property
additionalPitchPrefix
to""
. - Set context property
aDueText
to"a2"
. - Set context property
alterationGlyphs
to#f
. - Set context property
alternativeRestores
to:'(measurePosition measureLength measureStartNow lastChord)
- Set context property
associatedVoiceType
to'Voice
. - Set context property
autoAccidentals
to:'(Staff #<procedure at lily/music-functions.scm:1716:0 (context pitch barnum)>)
- Set context property
autoBeamCheck
todefault-auto-beam-check
. - Set context property
autoBeaming
to#t
. - Set context property
autoCautionaries
to'()
. - Set context property
barCheckSynchronize
to#f
. - Set context property
barNumberFormatter
torobust-bar-number-function
. - Set context property
barNumberVisibility
tofirst-bar-number-invisible-and-no-parenthesized-bar-numbers
. - Set context property
beamHalfMeasure
to#t
. - Set context property
breathMarkDefinitions
to:'((altcomma (text #<procedure musicglyph-markup (layout props glyph-name)> "scripts.raltcomma")) (caesura (text #<procedure musicglyph-markup (layout props glyph-name)> "scripts.caesura.straight")) (chantdoublebar (extra-spacing-width -1.0 . 0.0) (stencil . #<procedure ly:breathing-sign::finalis (_)>) (Y-offset . 0.0)) (chantfullbar (extra-spacing-width -1.0 . 0.0) (stencil . #<procedure ly:breathing-sign::divisio-maxima (_)>) (Y-offset . 0.0)) (chanthalfbar (extra-spacing-height . #<procedure item::extra-spacing-height-including-staff (grob)>) (extra-spacing-width -1.0 . 0.0) (stencil . #<procedure ly:breathing-sign::divisio-maior (_)>) (Y-offset . 0.0)) (chantquarterbar (extra-spacing-height . #<procedure item::extra-spacing-height-including-staff (grob)>) (extra-spacing-width -1.0 . 0.0) (stencil . #<procedure ly:breathing-sign::divisio-minima (_)>)) (comma (text #<procedure musicglyph-markup (layout props glyph-name)> "scripts.rcomma")) (curvedcaesura (text #<procedure musicglyph-markup (layout props glyph-name)> "scripts.caesura.curved")) (outsidecomma (outside-staff-priority . 40) (text #<procedure musicglyph-markup (layout props glyph-name)> "scripts.rcomma")) (spacer (text #<procedure null-markup (layout props)>)) (tickmark (outside-staff-priority . 40) (text #<procedure musicglyph-markup (layout props glyph-name)> "scripts.tickmark")) (upbow (outside-staff-priority . 40) (text #<procedure musicglyph-markup (layout props glyph-name)> "scripts.uupbow")) (varcomma (text #<procedure musicglyph-markup (layout props glyph-name)> "scripts.rvarcomma")))
- Set context property
breathMarkType
to'comma
. - Set context property
caesuraType
to:'((breath . caesura))
- Set context property
centerBarNumbers
to#f
. - Set context property
chordNameExceptions
to:'(((#<Pitch e' > #<Pitch gis' >) #<procedure line-markup (layout props args)> ("+")) ((#<Pitch ees' > #<Pitch ges' >) #<procedure line-markup (layout props args)> ((#<procedure line-markup (layout props args)> ((#<procedure fontsize-markup (layout props increment arg)> 2 "°"))))) ((#<Pitch ees' > #<Pitch ges' > #<Pitch bes' >) #<procedure line-markup (layout props args)> ((#<procedure super-markup (layout props arg)> "ø"))) ((#<Pitch ees' > #<Pitch ges' > #<Pitch beses' >) #<procedure concat-markup (layout props args)> ((#<procedure line-markup (layout props args)> ((#<procedure fontsize-markup (layout props increment arg)> 2 "°"))) (#<procedure super-markup (layout props arg)> "7"))) ((#<Pitch e' > #<Pitch g' > #<Pitch b' > #<Pitch fis'' >) #<procedure line-markup (layout props args)> ((#<procedure super-markup (layout props arg)> "lyd"))) ((#<Pitch e' > #<Pitch g' > #<Pitch bes' > #<Pitch des'' > #<Pitch ees'' > #<Pitch fis'' > #<Pitch aes'' >) #<procedure line-markup (layout props args)> ((#<procedure super-markup (layout props arg)> "alt"))) ((#<Pitch g' >) #<procedure line-markup (layout props args)> ((#<procedure super-markup (layout props arg)> "5"))) ((#<Pitch g' > #<Pitch c'' >) #<procedure line-markup (layout props args)> ((#<procedure super-markup (layout props arg)> "5"))))
- Set context property
chordNameFunction
toignatzek-chord-names
. - Set context property
chordNameLowercaseMinor
to#f
. - Set context property
chordNameSeparator
to:'(#<procedure hspace-markup (layout props amount)> 0.5)
- Set context property
chordNoteNamer
to'()
. - Set context property
chordPrefixSpacer
to0
. - Set context property
chordRootNamer
tonote-name->markup
. - Set context property
clefGlyph
to"clefs.G"
. - Set context property
clefPosition
to-2
. - Set context property
clefTranspositionFormatter
toclef-transposition-markup
. - Set context property
codaMarkFormatter
to#<procedure at lily/translation-functions.scm:222:4 (number context)>
. - Set context property
completionFactor
tounity-if-multimeasure
. - Set context property
crescendoSpanner
to'hairpin
. - Set context property
cueClefTranspositionFormatter
toclef-transposition-markup
. - Set context property
dalSegnoTextFormatter
toformat-dal-segno-text
. - Set context property
decrescendoSpanner
to'hairpin
. - Set context property
doubleRepeatBarType
to":..:"
. - Set context property
doubleRepeatSegnoBarType
to":|.S.|:"
. - Set context property
drumStyleTable
to#<hash-table>
. - Set context property
endRepeatBarType
to":|."
. - Set context property
endRepeatSegnoBarType
to":|.S"
. - Set context property
explicitClefVisibility
to:#(#t #t #t)
- Set context property
explicitCueClefVisibility
to:#(#f #t #t)
- Set context property
explicitKeySignatureVisibility
to:#(#t #t #t)
- Set context property
extendersOverRests
to#t
. - Set context property
extraNatural
to#t
. - Set context property
figuredBassAlterationDirection
to-1
. - Set context property
figuredBassFormatter
toformat-bass-figure
. - Set context property
figuredBassLargeNumberAlignment
to0
. - Set context property
figuredBassPlusDirection
to-1
. - Set context property
figuredBassPlusStrokedAlist
to:'((2 . "figbass.twoplus") (4 . "figbass.fourplus") (5 . "figbass.fiveplus") (6 . "figbass.sixstroked") (7 . "figbass.sevenstroked") (9 . "figbass.ninestroked"))
- Set context property
fineBarType
to"|."
. - Set context property
fineSegnoBarType
to"|.S"
. - Set context property
fineStartRepeatSegnoBarType
to"|.S.|:"
. - Set context property
fineText
to"Fine"
. - Set context property
fingeringOrientations
to:'(up down)
- Set context property
firstClef
to#t
. - Set context property
forbidBreakBetweenBarLines
to#t
. - Set context property
graceSettings
to:'((Voice Stem direction 1) (Voice Slur direction -1) (Voice Stem font-size -3) (Voice Flag font-size -3) (Voice NoteHead font-size -3) (Voice TabNoteHead font-size -4) (Voice Dots font-size -3) (Voice Stem length-fraction 0.8) (Voice Stem no-stem-extend #t) (Voice Beam beam-thickness 0.384) (Voice Beam length-fraction 0.8) (Voice Accidental font-size -4) (Voice AccidentalCautionary font-size -4) (Voice Script font-size -3) (Voice Fingering font-size -8) (Voice StringNumber font-size -8))
- Set context property
harmonicAccidentals
to#t
. - Set context property
highStringOne
to#t
. - Set context property
initialTimeSignatureVisibility
to:#(#f #t #t)
- Set context property
instrumentTransposition
to#<Pitch c' >
. - Set context property
keepAliveInterfaces
to:'(bass-figure-interface chord-name-interface cluster-beacon-interface dynamic-interface fret-diagram-interface lyric-syllable-interface note-head-interface tab-note-head-interface lyric-interface percent-repeat-interface stanza-number-interface)
- Set context property
keyAlterationOrder
to:'((6 . -1/2) (2 . -1/2) (5 . -1/2) (1 . -1/2) (4 . -1/2) (0 . -1/2) (3 . -1/2) (3 . 1/2) (0 . 1/2) (4 . 1/2) (1 . 1/2) (5 . 1/2) (2 . 1/2) (6 . 1/2) (6 . -1) (2 . -1) (5 . -1) (1 . -1) (4 . -1) (0 . -1) (3 . -1) (3 . 1) (0 . 1) (4 . 1) (1 . 1) (5 . 1) (2 . 1) (6 . 1))
- Set context property
lyricMelismaAlignment
to-1
. - Set context property
majorSevenSymbol
to:'(#<procedure line-markup (layout props args)> ((#<procedure fontsize-markup (layout props increment arg)> -3 (#<procedure triangle-markup (layout props filled)> #f))))
- Set context property
measureBarType
to"|"
. - Set context property
melismaBusyProperties
to:'(melismaBusy slurMelismaBusy tieMelismaBusy beamMelismaBusy completionBusy)
- Set context property
metronomeMarkFormatter
toformat-metronome-markup
. - Set context property
middleCClefPosition
to-6
. - Set context property
middleCPosition
to-6
. - Set context property
minorChordModifier
to"m"
. - Set context property
noChordSymbol
to"N.C."
. - Set context property
noteNameFunction
tonote-name-markup
. - Set context property
noteNameSeparator
to"/"
. - Set context property
noteToFretFunction
todetermine-frets
. - Set context property
partCombineTextsOnNote
to#t
. - Set context property
pedalSostenutoStrings
to:'("Sost. Ped." "*Sost. Ped." "*")
- Set context property
pedalSostenutoStyle
to'mixed
. - Set context property
pedalSustainStrings
to:'("Ped." "*Ped." "*")
- Set context property
pedalSustainStyle
to'text
. - Set context property
pedalUnaCordaStrings
to:'("una corda" "" "tre corde")
- Set context property
pedalUnaCordaStyle
to'text
. - Set context property
predefinedDiagramTable
to#f
. - Set context property
printAccidentalNames
to#t
. - Set context property
printKeyCancellation
to#t
. - Set context property
printOctaveNames
to#f
. - Set context property
printPartCombineTexts
to#t
. - Set context property
printTrivialVoltaRepeats
to#f
. - Set context property
quotedCueEventTypes
to:'(note-event rest-event tie-event beam-event tuplet-span-event tremolo-event)
- Set context property
quotedEventTypes
to:'(StreamEvent)
- Set context property
rehearsalMarkFormatter
to#<procedure at lily/translation-functions.scm:222:4 (number context)>
. - Set context property
rehearsalMark
to1
. - Set context property
repeatCountVisibility
toall-repeat-counts-visible
. - Set context property
restNumberThreshold
to1
. - Set context property
scriptDefinitions
to:'((accent (avoid-slur . around) (padding . 0.2) (script-stencil feta "sforzato" . "sforzato") (side-relative-direction . -1)) (accentus (script-stencil feta "uaccentus" . "uaccentus") (side-relative-direction . -1) (avoid-slur . ignore) (padding . 0.2) (quantize-position . #t) (script-priority . -100) (direction . 1)) (altcomma (script-stencil feta "laltcomma" . "raltcomma") (quantize-position . #t) (padding . 0.2) (avoid-slur . ignore) (direction . 1)) (circulus (script-stencil feta "circulus" . "circulus") (side-relative-direction . -1) (avoid-slur . ignore) (padding . 0.2) (quantize-position . #t) (script-priority . -100) (direction . 1)) (coda (script-stencil feta "coda" . "coda") (padding . 0.2) (avoid-slur . outside) (direction . 1)) (comma (script-stencil feta "lcomma" . "rcomma") (quantize-position . #t) (padding . 0.2) (avoid-slur . ignore) (direction . 1)) (downbow (script-stencil feta "ddownbow" . "udownbow") (padding . 0.2) (skyline-horizontal-padding . 0.2) (avoid-slur . around) (direction . 1) (script-priority . 180)) (downmordent (script-stencil feta "downmordent" . "downmordent") (padding . 0.2) (avoid-slur . around) (direction . 1)) (downprall (script-stencil feta "downprall" . "downprall") (padding . 0.2) (avoid-slur . around) (direction . 1)) (espressivo (avoid-slur . around) (padding . 0.2) (script-stencil feta "espr" . "espr") (side-relative-direction . -1)) (fermata (script-stencil feta "dfermata" . "ufermata") (padding . 0.4) (avoid-slur . around) (outside-staff-priority . 75) (script-priority . 175) (direction . 1)) (flageolet (script-stencil feta "flageolet" . "flageolet") (padding . 0.2) (avoid-slur . around) (direction . 1) (script-priority . 50)) (halfopen (avoid-slur . outside) (padding . 0.2) (script-stencil feta "halfopen" . "halfopen") (direction . 1)) (halfopenvertical (avoid-slur . outside) (padding . 0.2) (script-stencil feta "halfopenvertical" . "halfopenvertical") (direction . 1)) (haydnturn (script-stencil feta "haydnturn" . "haydnturn") (padding . 0.2) (avoid-slur . inside) (direction . 1)) (henzelongfermata (script-stencil feta "dhenzelongfermata" . "uhenzelongfermata") (padding . 0.4) (avoid-slur . around) (outside-staff-priority . 75) (script-priority . 175) (direction . 1)) (henzeshortfermata (script-stencil feta "dhenzeshortfermata" . "uhenzeshortfermata") (padding . 0.4) (avoid-slur . around) (outside-staff-priority . 75) (script-priority . 175) (direction . 1)) (ictus (script-stencil feta "ictus" . "ictus") (side-relative-direction . -1) (quantize-position . #t) (avoid-slur . ignore) (padding . 0.2) (script-priority . -100) (direction . -1)) (lheel (script-stencil feta "upedalheel" . "upedalheel") (padding . 0.2) (avoid-slur . around) (direction . -1)) (lineprall (script-stencil feta "lineprall" . "lineprall") (padding . 0.2) (avoid-slur . around) (direction . 1)) (longfermata (script-stencil feta "dlongfermata" . "ulongfermata") (padding . 0.4) (avoid-slur . around) (outside-staff-priority . 75) (script-priority . 175) (direction . 1)) (ltoe (script-stencil feta "upedaltoe" . "upedaltoe") (padding . 0.2) (avoid-slur . around) (direction . -1)) (marcato (script-stencil feta "dmarcato" . "umarcato") (padding . 0.2) (avoid-slur . inside) (quantize-position . #t) (side-relative-direction . -1)) (mordent (script-stencil feta "mordent" . "mordent") (padding . 0.2) (avoid-slur . around) (direction . 1)) (open (avoid-slur . outside) (padding . 0.2) (script-stencil feta "open" . "open") (direction . 1)) (outsidecomma (avoid-slur . around) (direction . 1) (padding . 0.2) (script-stencil feta "lcomma" . "rcomma")) (portato (script-stencil feta "uportato" . "dportato") (avoid-slur . around) (padding . 0.45) (side-relative-direction . -1)) (prall (script-stencil feta "prall" . "prall") (padding . 0.2) (avoid-slur . around) (direction . 1)) (pralldown (script-stencil feta "pralldown" . "pralldown") (padding . 0.2) (avoid-slur . around) (direction . 1)) (prallmordent (script-stencil feta "prallmordent" . "prallmordent") (padding . 0.2) (avoid-slur . around) (direction . 1)) (prallprall (script-stencil feta "prallprall" . "prallprall") (padding . 0.2) (avoid-slur . around) (direction . 1)) (prallup (script-stencil feta "prallup" . "prallup") (padding . 0.2) (avoid-slur . around) (direction . 1)) (reverseturn (script-stencil feta "reverseturn" . "reverseturn") (padding . 0.2) (avoid-slur . inside) (direction . 1)) (rheel (script-stencil feta "dpedalheel" . "dpedalheel") (padding . 0.2) (avoid-slur . around) (direction . 1)) (rtoe (script-stencil feta "dpedaltoe" . "dpedaltoe") (padding . 0.2) (avoid-slur . around) (direction . 1)) (segno (script-stencil feta "segno" . "segno") (padding . 0.2) (avoid-slur . outside) (direction . 1)) (semicirculus (script-stencil feta "dsemicirculus" . "dsemicirculus") (side-relative-direction . -1) (quantize-position . #t) (avoid-slur . ignore) (padding . 0.2) (script-priority . -100) (direction . 1)) (shortfermata (script-stencil feta "dshortfermata" . "ushortfermata") (padding . 0.4) (avoid-slur . around) (outside-staff-priority . 75) (script-priority . 175) (direction . 1)) (signumcongruentiae (script-stencil feta "dsignumcongruentiae" . "usignumcongruentiae") (padding . 0.2) (avoid-slur . outside) (direction . 1)) (slashturn (script-stencil feta "slashturn" . "slashturn") (padding . 0.2) (avoid-slur . inside) (direction . 1)) (snappizzicato (script-stencil feta "snappizzicato" . "snappizzicato") (padding . 0.2) (avoid-slur . outside) (direction . 1)) (staccatissimo (avoid-slur . inside) (quantize-position . #t) (script-stencil feta "dstaccatissimo" . "ustaccatissimo") (padding . 0.2) (skyline-horizontal-padding . 0.1) (side-relative-direction . -1) (toward-stem-shift . 1.0) (toward-stem-shift-in-column . 0.0)) (staccato (script-stencil feta "staccato" . "staccato") (side-relative-direction . -1) (quantize-position . #t) (avoid-slur . inside) (toward-stem-shift . 1.0) (toward-stem-shift-in-column . 0.0) (padding . 0.2) (skyline-horizontal-padding . 0.1) (script-priority . -100)) (stopped (script-stencil feta "stopped" . "stopped") (avoid-slur . inside) (padding . 0.2) (direction . 1)) (tenuto (script-stencil feta "tenuto" . "tenuto") (quantize-position . #t) (avoid-slur . inside) (padding . 0.2) (script-priority . -50) (side-relative-direction . -1)) (trill (script-stencil feta "trill" . "trill") (direction . 1) (padding . 0.2) (avoid-slur . outside) (script-priority . 150)) (turn (script-stencil feta "turn" . "turn") (avoid-slur . inside) (padding . 0.2) (direction . 1)) (upbow (script-stencil feta "dupbow" . "uupbow") (avoid-slur . around) (padding . 0.2) (direction . 1) (script-priority . 180)) (upmordent (script-stencil feta "upmordent" . "upmordent") (padding . 0.2) (avoid-slur . around) (direction . 1)) (upprall (script-stencil feta "upprall" . "upprall") (padding . 0.2) (avoid-slur . around) (direction . 1)) (varcoda (script-stencil feta "varcoda" . "varcoda") (padding . 0.2) (avoid-slur . outside) (direction . 1)) (varcomma (script-stencil feta "lvarcomma" . "rvarcomma") (quantize-position . #t) (padding . 0.2) (avoid-slur . ignore) (direction . 1)) (verylongfermata (script-stencil feta "dverylongfermata" . "uverylongfermata") (padding . 0.4) (avoid-slur . around) (outside-staff-priority . 75) (script-priority . 175) (direction . 1)) (veryshortfermata (script-stencil feta "dveryshortfermata" . "uveryshortfermata") (padding . 0.4) (avoid-slur . around) (outside-staff-priority . 75) (script-priority . 175) (direction . 1)))
- Set context property
sectionBarType
to"||"
. - Set context property
segnoBarType
to"S"
. - Set context property
segnoMarkFormatter
toformat-segno-mark-considering-bar-lines
. - Set context property
segnoStyle
to'mark
. - Set context property
slashChordSeparator
to"/"
. - Set context property
soloIIText
to"Solo II"
. - Set context property
soloText
to"Solo"
. - Set context property
startRepeatBarType
to".|:"
. - Set context property
startRepeatSegnoBarType
to"S.|:"
. - Set context property
stringNumberOrientations
to:'(up down)
- Set context property
stringOneTopmost
to#t
. - Set context property
stringTunings
to:'(#<Pitch e' > #<Pitch b > #<Pitch g > #<Pitch d > #<Pitch a, > #<Pitch e, >)
- Set context property
strokeFingerOrientations
to:'(right)
- Set context property
subdivideBeams
to#f
. - Set context property
suspendMelodyDecisions
to#f
. - Set context property
systemStartDelimiter
to'SystemStartBar
. - Set context property
tablatureFormat
tofret-number-tablature-format
. - Set context property
tabStaffLineLayoutFunction
totablature-position-on-lines
. - Set context property
tieWaitForNote
to#f
. - Set context property
timeSignatureFraction
to:'(4 . 4)
- Set context property
timeSignatureSettings
to:'(((2 . 2) (beamExceptions (end (1/32 8 8 8 8)))) ((3 . 2) (beamExceptions (end (1/32 8 8 8 8 8 8)))) ((3 . 4) (beamExceptions (end (1/8 6) (1/12 3 3 3)))) ((3 . 8) (beamExceptions (end (1/8 3)))) ((4 . 2) (beamExceptions (end (1/16 4 4 4 4 4 4 4 4)))) ((4 . 4) (beamExceptions (end (1/8 4 4) (1/12 3 3 3 3)))) ((4 . 8) (beatStructure 2 2)) ((6 . 4) (beamExceptions (end (1/16 4 4 4 4 4 4)))) ((9 . 4) (beamExceptions (end (1/32 8 8 8 8 8 8 8 8)))) ((12 . 4) (beamExceptions (end (1/32 8 8 8 8 8 8 8 8 8 8 8 8)))) ((5 . 8) (beatStructure 3 2)) ((8 . 8) (beatStructure 3 3 2)))
- Set context property
timing
to#t
. - Set context property
topLevelAlignment
to#t
. - Set context property
underlyingRepeatBarType
to"||"
.
This is not a ‘Bottom’ context; search for such a one will commence after creating an implicit context of type Staff
.
Context Score
can contain
ChoirStaff
, ChordNames
, Devnull
, DrumStaff
, Dynamics
, FiguredBass
, FretBoards
, GrandStaff
, GregorianTranscriptionLyrics
, GregorianTranscriptionStaff
, KievanStaff
, Lyrics
, MensuralStaff
, NoteNames
, OneStaff
, PetrucciStaff
, PianoStaff
, RhythmicStaff
, Staff
, StaffGroup
, TabStaff
, VaticanaLyrics
and VaticanaStaff
.
This context is built from the following engraver(s):
Bar_number_engraver
A bar number may be created at any bar line, subject to the
barNumberVisibility
callback. By default, it is put on top of all staves and appears only at the left side of the staff. The staves are taken fromstavesFound
, which is maintained byStaff_collecting_engraver
. This engraver usually createsBarNumber
grobs, but whencenterBarNumbers
is true, it makesCenteredBarNumber
grobs instead.Properties (read)
alternativeNumber
(non-negative, exact integer)When set, the first volta number for the current
\alternative
element. Not set outside of alternatives.alternativeNumberingStyle
(symbol)The scheme and style for numbering bars in repeat alternatives. If not set (the default), bar numbers continue through alternatives. Can be set to
numbers
to reset the bar number at each alternative, or set tonumbers-with-letters
to reset and also include letter suffixes.barNumberFormatter
(procedure)A procedure that takes a bar number, measure position, and alternative number and returns a markup of the bar number to print.
barNumberVisibility
(procedure)A procedure that takes a bar number and a measure position and returns whether the corresponding bar number should be printed. Note that the actual print-out of bar numbers is controlled with the
break-visibility
property.The following procedures are predefined:
all-bar-numbers-visible
Enable bar numbers for all bars, including the first one and broken bars (which get bar numbers in parentheses).
first-bar-number-invisible
Enable bar numbers for all bars (including broken bars) except the first one. If the first bar is broken, it doesn’t get a bar number either.
first-bar-number-invisible-save-broken-bars
Enable bar numbers for all bars (including broken bars) except the first one. A broken first bar gets a bar number.
first-bar-number-invisible-and-no-parenthesized-bar-numbers
Enable bar numbers for all bars except the first bar and broken bars. This is the default.
(every-nth-bar-number-visible n)
Assuming n is value 2, for example, this enables bar numbers for bars 2, 4, 6, etc.
(modulo-bar-number-visible n m)
If bar numbers 1, 4, 7, etc., should be enabled, n (the modulo) must be set to 3 and m (the division remainder) to 1.
centerBarNumbers
(boolean)Whether to center bar numbers in their measure instead of aligning them on the bar line.
currentBarNumber
(integer)Contains the current bar number. This property is incremented at every bar line.
currentCommandColumn
(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
forbidBreak
(boolean)If set to
#t
, prevent a line break at this point, except if explicitly requested by the user.forceBreak
(boolean)Set to
#t
when an event forcing a line break was heard.measurePosition
(moment)How much of the current measure have we had. This can be set manually to create incomplete measures.
stavesFound
(list of grobs)A list of all staff-symbols found.
This engraver creates the following layout object(s):
BarNumber
andCenteredBarNumber
.Beam_collision_engraver
Help beams avoid colliding with notes and clefs in other voices.
Break_align_engraver
Align grobs with corresponding
break-align-symbols
into groups, and order the groups according tobreakAlignOrder
. The left edge of the alignment gets a separate group, with a symbolleft-edge
.This engraver creates the following layout object(s):
BreakAlignGroup
,BreakAlignment
andLeftEdge
.Centered_bar_number_align_engraver
Group measure-centered bar numbers in a
CenteredBarNumberLineSpanner
so they end up on the same vertical position.Properties (read)
currentCommandColumn
(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
This engraver creates the following layout object(s):
CenteredBarNumberLineSpanner
.Concurrent_hairpin_engraver
Collect concurrent hairpins.
Footnote_engraver
Create footnote texts.
This engraver creates the following layout object(s):
Footnote
.Grace_spacing_engraver
Bookkeeping of shortest starting and playing notes in grace note runs.
Properties (read)
currentMusicalColumn
(graphical (layout) object)Grob that is X-parent to all non-breakable items (note heads, lyrics, etc.).
This engraver creates the following layout object(s):
GraceSpacing
.Jump_engraver
This engraver creates instructions such as D.C. and Fine, placing them vertically outside the set of staves given in the
stavesFound
context property.If
Jump_engraver
is added or moved to another context,Staff_collecting_engraver
also needs to be there so that marks appear at the intended Y location.Music types accepted:
ad-hoc-jump-event
,dal-segno-event
andfine-event
Properties (read)
codaMarkCount
(non-negative, exact integer)Updated at the end of each timestep in which a coda mark appears: not set during the first timestep, 0 up to the first coda mark, 1 from the first to the second, 2 from the second to the third, etc.
codaMarkFormatter
(procedure)A procedure that creates a coda mark (which in conventional D.S. al Coda form indicates the start of the alternative endings), taking as arguments the mark sequence number and the context. It should return a markup object.
dalSegnoTextFormatter
(procedure)Format a jump instruction such as D.S.
The first argument is the context.
The second argument is the number of times the instruction is performed.
The third argument is a list of three markups: start-markup, end-markup, and next-markup.
If start-markup is
#f
, the form is da capo; otherwise the form is dal segno and start-markup is the sign at the start of the repeated section.If end-markup is not
#f
, it is either the sign at the end of the main body of the repeat, or it is a Fine instruction. When it is a Fine instruction, next-markup is#f
.If next-markup is not
#f
, it is the mark to be jumped to after performing the body of the repeat, e.g., Coda.finalFineTextVisibility
(boolean)Whether
\fine
at the written end of the music should create a Fine instruction.fineText
(markup)The text to print at
\fine
.segnoMarkCount
(non-negative, exact integer)Updated at the end of each timestep in which a segno appears: not set during the first timestep, 0 up to the first segno, 1 from the first to the second segno, 2 from the second to the third segno, etc.
segnoMarkFormatter
(procedure)A procedure that creates a segno (which conventionally indicates the start of a repeated section), taking as arguments the mark sequence number and the context. It should return a markup object.
stavesFound
(list of grobs)A list of all staff-symbols found.
This engraver creates the following layout object(s):
JumpScript
.Mark_engraver
This engraver creates rehearsal marks, segno and coda marks, and section labels.
Mark_engraver
creates marks, formats them, and places them vertically outside the set of staves given in thestavesFound
context property.If
Mark_engraver
is added or moved to another context,Staff_collecting_engraver
also needs to be there so that marks appear at the intended Y location.By default,
Mark_engravers
in multiple contexts create a common sequence of marks chosen by theScore
-levelMark_tracking_translator
. If independent sequences are desired, multipleMark_tracking_translators
must be used.Properties (read)
codaMarkFormatter
(procedure)A procedure that creates a coda mark (which in conventional D.S. al Coda form indicates the start of the alternative endings), taking as arguments the mark sequence number and the context. It should return a markup object.
currentPerformanceMarkEvent
(stream event)The coda, section, or segno mark event selected by
Mark_tracking_translator
for engraving byMark_engraver
.currentRehearsalMarkEvent
(stream event)The ad-hoc or rehearsal mark event selected by
Mark_tracking_translator
for engraving byMark_engraver
.rehearsalMarkFormatter
(procedure)A procedure taking as arguments the context and the sequence number of the rehearsal mark. It should return the formatted mark as a markup object.
segnoMarkFormatter
(procedure)A procedure that creates a segno (which conventionally indicates the start of a repeated section), taking as arguments the mark sequence number and the context. It should return a markup object.
stavesFound
(list of grobs)A list of all staff-symbols found.
This engraver creates the following layout object(s):
CodaMark
,RehearsalMark
,SectionLabel
andSegnoMark
.Mark_tracking_translator
This translator chooses which marks
Mark_engraver
should engrave.Music types accepted:
ad-hoc-mark-event
,coda-mark-event
,rehearsal-mark-event
,section-label-event
andsegno-mark-event
Properties (read)
codaMarkCount
(non-negative, exact integer)Updated at the end of each timestep in which a coda mark appears: not set during the first timestep, 0 up to the first coda mark, 1 from the first to the second, 2 from the second to the third, etc.
rehearsalMark
(integer)The next rehearsal mark to print.
segnoMarkCount
(non-negative, exact integer)Updated at the end of each timestep in which a segno appears: not set during the first timestep, 0 up to the first segno, 1 from the first to the second segno, 2 from the second to the third segno, etc.
Properties (write)
codaMarkCount
(non-negative, exact integer)Updated at the end of each timestep in which a coda mark appears: not set during the first timestep, 0 up to the first coda mark, 1 from the first to the second, 2 from the second to the third, etc.
currentPerformanceMarkEvent
(stream event)The coda, section, or segno mark event selected by
Mark_tracking_translator
for engraving byMark_engraver
.currentRehearsalMarkEvent
(stream event)The ad-hoc or rehearsal mark event selected by
Mark_tracking_translator
for engraving byMark_engraver
.rehearsalMark
(integer)The next rehearsal mark to print.
segnoMarkCount
(non-negative, exact integer)Updated at the end of each timestep in which a segno appears: not set during the first timestep, 0 up to the first segno, 1 from the first to the second segno, 2 from the second to the third segno, etc.
Metronome_mark_engraver
Engrave metronome 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 thestavesFound
property, which is maintained byStaff_collecting_engraver
.Music types accepted:
tempo-change-event
Properties (read)
currentCommandColumn
(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
currentMusicalColumn
(graphical (layout) object)Grob that is X-parent to all non-breakable items (note heads, lyrics, etc.).
metronomeMarkFormatter
(procedure)How to produce a metronome markup. Called with two arguments: a
TempoChangeEvent
and context.stavesFound
(list of grobs)A list of all staff-symbols found.
tempoHideNote
(boolean)Hide the note = count in tempo marks.
This engraver creates the following layout object(s):
MetronomeMark
.Output_property_engraver
Apply a procedure to any grob acknowledged.
Music types accepted:
apply-output-event
Paper_column_engraver
Take 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 setforbidBreaks
in the score context to stop line breaks. In practice, this means that you can make a break point by creating a bar line (assuming that there are no beams or notes that prevent a break point).Music types accepted:
break-event
andlabel-event
Properties (read)
forbidBreak
(boolean)If set to
#t
, prevent a line break at this point, except if explicitly requested by the user.Properties (write)
currentCommandColumn
(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
currentMusicalColumn
(graphical (layout) object)Grob that is X-parent to all non-breakable items (note heads, lyrics, etc.).
forbidBreak
(boolean)If set to
#t
, prevent a line break at this point, except if explicitly requested by the user.forceBreak
(boolean)Set to
#t
when an event forcing a line break was heard.This engraver creates the following layout object(s):
NonMusicalPaperColumn
andPaperColumn
.Parenthesis_engraver
Parenthesize objects whose
parenthesize
property is#t
.This engraver creates the following layout object(s):
Parentheses
.Repeat_acknowledge_engraver
This translator adds entries to
repeatCommands
for events generated by\\repeat volta
.Music types accepted:
volta-repeat-end-event
andvolta-repeat-start-event
Properties (write)
repeatCommands
(list)A list of commands related to volta-style repeats. In general, each element is a list,
'(command args…)
, but a command with no arguments may be abbreviated to a symbol; e.g.,'((start-repeat))
may be given as'(start-repeat)
.
end-repeat return-count
End a repeated section. return-count is the number of times to go back from this point to the beginning of the section.
start-repeat repeat-count
Start a repeated section. repeat-count is the number of times to perform this section.
volta text
If text is markup, start a volta bracket with that label; if text is
#f
, end a volta bracket.Show_control_points_engraver
Create grobs to visualize control points of Bézier curves (ties and slurs) for ease of tweaking.
This engraver creates the following layout object(s):
ControlPoint
andControlPolygon
.Spacing_engraver
Make a
SpacingSpanner
and do bookkeeping of shortest starting and playing notes.Music types accepted:
spacing-section-event
Properties (read)
currentCommandColumn
(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
currentMusicalColumn
(graphical (layout) object)Grob that is X-parent to all non-breakable items (note heads, lyrics, etc.).
proportionalNotationDuration
(non-negative moment with no grace part)Global override for shortest-playing duration. This is used for switching on proportional notation.
This engraver creates the following layout object(s):
SpacingSpanner
.Spanner_tracking_engraver
Helper for creating spanners attached to other spanners. If a spanner has the
sticky-grob-interface
, the engraver tracks the spanner contained in itssticky-host
object. When the host ends, the sticky spanner attached to it has its end announced too.Staff_collecting_engraver
Maintain the
stavesFound
variable.Properties (read)
stavesFound
(list of grobs)A list of all staff-symbols found.
Properties (write)
stavesFound
(list of grobs)A list of all staff-symbols found.
Stanza_number_align_engraver
This engraver ensures that stanza numbers are neatly aligned.
System_start_delimiter_engraver
Create a system start delimiter (i.e., a
SystemStartBar
,SystemStartBrace
,SystemStartBracket
orSystemStartSquare
spanner).Properties (read)
currentCommandColumn
(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
systemStartDelimiter
(symbol)Which grob to make for the start of the system/staff? Set to
SystemStartBrace
,SystemStartBracket
orSystemStartBar
.systemStartDelimiterHierarchy
(pair)A nested list, indicating the nesting of a start delimiters.
This engraver creates the following layout object(s):
SystemStartBar
,SystemStartBrace
,SystemStartBracket
andSystemStartSquare
.Text_mark_engraver
Engraves arbitrary textual marks.
Music types accepted:
text-mark-event
Properties (read)
stavesFound
(list of grobs)A list of all staff-symbols found.
This engraver creates the following layout object(s):
TextMark
.Timing_translator
This engraver adds the alias
Timing
to its containing context. Responsible for synchronizing timing information from staves. Normally inScore
. In order to create polyrhythmic music, this engraver should be removed fromScore
and placed inStaff
.Music types accepted:
alternative-event
,bar-check-event
,bar-event
,fine-event
andpartial-event
Properties (read)
alternativeNumberingStyle
(symbol)The scheme and style for numbering bars in repeat alternatives. If not set (the default), bar numbers continue through alternatives. Can be set to
numbers
to reset the bar number at each alternative, or set tonumbers-with-letters
to reset and also include letter suffixes.beatBase
(positive exact rational or +inf.0)The musical length corresponding to one unit of
beatStructure
.currentBarNumber
(integer)Contains the current bar number. This property is incremented at every bar line.
internalBarNumber
(integer)Contains the current bar number. This property is used for internal timekeeping, among others by the
Accidental_engraver
.measureLength
(positive moment with no grace part)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.
timeSignatureFraction
(positive, finite fraction, as pair)A pair of numbers, signifying the time signature. For example,
'(4 . 4)
is a 4/4 time signature.Properties (write)
alternativeNumber
(non-negative, exact integer)When set, the first volta number for the current
\alternative
element. Not set outside of alternatives.beatBase
(positive exact rational or +inf.0)The musical length corresponding to one unit of
beatStructure
.currentBarNumber
(integer)Contains the current bar number. This property is incremented at every bar line.
internalBarNumber
(integer)Contains the current bar number. This property is used for internal timekeeping, among others by the
Accidental_engraver
.measureLength
(positive moment with no grace part)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.
measureStartNow
(boolean)True at the beginning of a measure.
timeSignatureFraction
(positive, finite fraction, as pair)A pair of numbers, signifying the time signature. For example,
'(4 . 4)
is a 4/4 time signature.Tweak_engraver
Read the
tweaks
property from the originating event, and set properties.Vertical_align_engraver
Catch groups (staves, lyrics lines, etc.) and stack them vertically.
Properties (read)
alignAboveContext
(string)Where to insert newly created context in vertical alignment.
alignBelowContext
(string)Where to insert newly created context in vertical alignment.
hasAxisGroup
(boolean)True if the current context is contained in an axis group.
This engraver creates the following layout object(s):
StaffGrouper
andVerticalAlignment
.Volta_engraver
Make volta brackets.
Music types accepted:
dal-segno-event
,fine-event
andvolta-span-event
Properties (read)
currentCommandColumn
(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
printTrivialVoltaRepeats
(boolean)Notate volta-style repeats even when the repeat count is 1.
repeatCommands
(list)A list of commands related to volta-style repeats. In general, each element is a list,
'(command args…)
, but a command with no arguments may be abbreviated to a symbol; e.g.,'((start-repeat))
may be given as'(start-repeat)
.
end-repeat return-count
End a repeated section. return-count is the number of times to go back from this point to the beginning of the section.
start-repeat repeat-count
Start a repeated section. repeat-count is the number of times to perform this section.
volta text
If text is markup, start a volta bracket with that label; if text is
#f
, end a volta bracket.stavesFound
(list of grobs)A list of all staff-symbols found.
voltaSpannerDuration
(non-negative moment with no grace part)The maximum musical length of a
VoltaBracket
when itsmusical-length
property is not set.This property is deprecated; overriding the
musical-length
property ofVoltaBracket
is recommended.This engraver creates the following layout object(s):
VoltaBracket
andVoltaBracketSpanner
.
[ << Translation ] | [Top][Contents][Index] | [ Backend >> ] |
[ < RhythmicStaff ] | [ Up : Contexts ] | [ Staff > ] |