| [ << Translation ] | [Top][Contents][Index] | [ Backend >> ] |
[ < Lyrics ] | [ Up: Contexts ] | [ MensuralVoice > ] |
2.1.22 MensuralStaff
Same as Staff context, except that it is
accommodated for typesetting a piece in mensural style.
This context also accepts commands for the following context(s):
Staff.
This context creates the following layout object(s):
Accidental, AccidentalCautionary, AccidentalPlacement, AccidentalSuggestion, BarLine, BassFigure, BassFigureAlignment, BassFigureAlignmentPositioning, BassFigureBracket, BassFigureContinuation, BassFigureLine, BreathingSign, CaesuraScript, Clef, ClefModifier, CueClef, CueEndClef, Custos, DotColumn, FingeringColumn, InstrumentName, KeyCancellation, KeySignature, LedgerLineSpanner, NoteCollision, OptionalMaterialBracket, OttavaBracket, PianoPedalBracket, RestCollision, ScriptColumn, ScriptRow, SignumRepetitionis, SostenutoPedal, SostenutoPedalLineSpanner, StaffEllipsis, StaffHighlight, StaffSpacing, StaffSymbol, SustainPedal, SustainPedalLineSpanner, TimeSignature, UnaCordaPedal, UnaCordaPedalLineSpanner and VerticalAxisGroup.
This context sets the following properties:
- Set context property
alterationGlyphsto:'((-1/2 . "accidentals.mensuralM1") (0 . "accidentals.vaticana0") (1/2 . "accidentals.mensural1"))
- Set context property
autoAccidentalsto:'(Staff #<procedure at lily/music-functions.scm:1717:0 (context pitch barnum)>)
- Set context property
autoCautionariesto'(). - Set context property
caesuraTypeto:'((bar-line . "|"))
- Set context property
clefGlyphto"clefs.mensural.g". - Set context property
clefPositionto-2. - Set context property
clefTranspositionto0. - Set context property
createSpacingto#t. - Set context property
doubleRepeatBarTypeto'(). - Set context property
doubleRepeatSegnoBarTypeto"S". - Set context property
endRepeatBarTypeto'(). - Set context property
endRepeatSegnoBarTypeto"S". - Set context property
extraNaturalto#f. - Set context property
fineSegnoBarTypeto"|.S". - Set context property
fineStartRepeatSegnoBarTypeto"|.S". - Set context property
forbidBreakBetweenBarLinesto#f. - Set context property
ignoreFiguredBassRestto#f. - Set context property
instrumentNameto'(). - Set context property
localAlterationsto'(). - Set context property
measureBarTypeto'(). - Set context property
middleCClefPositionto-6. - Set context property
middleCPositionto-6. - Set context property
ottavationMarkupsto:'((4 . "29") (3 . "22") (2 . "15") (1 . "8") (-1 . "8") (-2 . "15") (-3 . "22") (-4 . "29"))
- Set context property
printKeyCancellationto#f. - Set context property
segnoBarTypeto"S". - Set context property
shortInstrumentNameto'(). - Set context property
startRepeatBarTypeto"|". - Set context property
startRepeatSegnoBarTypeto"S". - Set context property
underlyingRepeatBarTypeto'(). - Set grob property
hair-thicknessinBarLineto0.6. - Set grob property
neutral-directioninCustosto-1. - Set grob property
neutral-positioninCustosto3. - Set grob property
styleinCustosto'mensural. - Set grob property
styleinTimeSignatureto'mensural. - Set grob property
thick-thicknessinBarLineto1.8. - Set grob property
thicknessinStaffSymbolto0.6.
This is not a ‘Bottom’ context; search for such a one will commence after creating an implicit context of type MensuralVoice.
Context MensuralStaff can contain
CueVoice, MensuralVoice and NullVoice.
This context is built from the following engraver(s):
Accidental_engraverMake accidentals. Catch note heads, ties and notices key-change events. This engraver usually lives at Staff level, but reads the settings for Accidental at
Voicelevel, so you can\overridethem atVoice.Properties (read)
accidentalGrouping(symbol)If set to
'voice, accidentals on the same note in different octaves may be horizontally staggered if in different voices.autoAccidentals(list)List of different ways to typeset an accidental.
For determining when to print an accidental, several different rules are tried. The rule that gives the highest number of accidentals is used.
Each entry in the list is either a symbol or a procedure.
- symbol
The symbol is the name of the context in which the following rules are to be applied. For example, if context is Score then all staves share accidentals, and if context is Staff then all voices in the same staff share accidentals, but staves do not.
- procedure
The procedure represents an accidental rule to be applied to the previously specified context.
The procedure takes the following arguments:
contextThe current context to which the rule should be applied.
pitchThe pitch of the note to be evaluated.
barnumThe current bar number.
The procedure returns a pair of booleans. The first states whether an extra natural should be added. The second states whether an accidental should be printed.
(#t . #f)does not make sense.autoCautionaries(list)List similar to
autoAccidentals, but it controls cautionary accidentals rather than normal ones. Both lists are tried, and the one giving the most accidentals wins. In case of draw, a normal accidental is typeset.extraNatural(boolean)Whether to typeset an extra natural sign before accidentals that reduce the effect of a previous alteration.
harmonicAccidentals(boolean)If set, harmonic notes in chords get accidentals.
internalBarNumber(integer)Contains the current bar number. This property is used for internal timekeeping, among others by the
Accidental_engraver.keyAlterations(list)The current key signature. This is an alist containing
(step . alter)or((octave . step) . alter), where step is a number in the range 0 to 6 and alter a fraction, denoting alteration. For alterations, use symbols, e.g.,keyAlterations = #`((6 . ,FLAT)).localAlterations(list)The key signature at this point in the measure. The format is the same as for
keyAlterations, but can also contain((octave . name) . (alter barnumber . measureposition))pairs.Properties (write)
localAlterations(list)The key signature at this point in the measure. The format is the same as for
keyAlterations, but can also contain((octave . name) . (alter barnumber . measureposition))pairs.This engraver creates the following layout object(s):
Accidental,AccidentalCautionary,AccidentalPlacementandAccidentalSuggestion.Alteration_glyph_engraverSet the
glyph-name-alistof all grobs having theaccidental-switch-interfaceto the value of the context’salterationGlyphsproperty, when defined.Properties (read)
alterationGlyphs(list)Alist mapping alterations to accidental glyphs. Alterations are given as exact numbers, e.g., -1/2 for flat. This applies to all grobs that can print accidentals.
Axis_group_engraverGroup all objects created in this context in a
VerticalAxisGroupspanner.Properties (read)
currentCommandColumn(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
hasAxisGroup(boolean)True if the current context is contained in an axis group.
keepAliveInterfaces(list)A list of symbols, signifying grob interfaces that are worth keeping a staff with
remove-emptyset around for.Properties (write)
hasAxisGroup(boolean)True if the current context is contained in an axis group.
This engraver creates the following layout object(s):
VerticalAxisGroup.Bar_engraverCreate bar lines for various commands, including
\\bar.If
forbidBreakBetweenBarLinesis true, allow line breaks at bar lines only.Music types accepted:
ad-hoc-jump-event,caesura-event,coda-mark-event,dal-segno-event,fine-event,section-eventandsegno-mark-eventProperties (read)
caesuraType(list)An alist
((bar-line . bar-type) (breath . breath-type) (scripts . script-type…) (underlying-bar-line . bar-type))specifying which breath mark, bar line, and scripts to create at
\caesura. All entries are optional.
bar-linehas higher priority than a measure bar line andunderlying-bar-linehas lower priority than a measure bar line.caesuraTypeTransform(procedure)An engraver callback taking three arguments and returning an alist of the same kind as
caesuraType.The first argument is the context.
The second argument is the value of
caesuraTypewith an additional entry(articulations . symbol-list)identifying the articulations attached to the caesura in the music. If the transform function returns this second argument unmodified, it is as if no transform function were set; the function is free to return a different value. The transform function can remove articulations, but any added articulations are ignored.The third argument is a symbol-list identifying certain things the engraver has observed.
bar-lineindicates that the engraver has observed aBarLineat the current moment.doubleRepeatBarType(string)Bar line to insert where the end of one
\repeat voltacoincides with the start of another. The default is ‘:..:’.doubleRepeatSegnoBarType(string)Bar line to insert where an in-staff segno coincides with the end of one
\repeat voltaand the beginning of another. The default is ‘:|.S.|:’.endRepeatBarType(string)Bar line to insert at the end of a
\repeat volta. The default is ‘:|.’.endRepeatSegnoBarType(string)Bar line to insert where an in-staff segno coincides with the end of a
\repeat volta. The default is ‘:|.S’.fineBarType(string)Bar line to insert at
\fine. Where there is also a repeat bar line, the repeat bar line takes precedence and this value is appended to it as an annotation. The default is ‘|.’.fineSegnoBarType(string)Bar line to insert where an in-staff segno coincides with
\fine. The default is ‘|.S’.fineStartRepeatSegnoBarType(string)Bar line to insert where an in-staff segno coincides with
\fineand the start of a\repeat volta. The default is ‘|.S.|:’.forbidBreakBetweenBarLines(boolean)If set to
#t,Bar_engraverforbids line breaks where there is no bar line.measureBarType(string)Bar line to insert at a measure boundary.
printInitialRepeatBar(boolean)Use a special bar line at the start of a volta repeat even at the beginning of the piece.
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-countEnd 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-countStart a repeated section. repeat-count is the number of times to perform this section.
volta textIf text is markup, start a volta bracket with that label; if text is
#f, end a volta bracket.sectionBarType(string)Bar line to insert at
\section. Where there is also a repeat bar line, the repeat bar line takes precedence and this value is appended to it as an annotation. The default is ‘||’.segnoBarType(string)Bar line to insert at an in-staff segno. The default is ‘S’.
segnoStyle(symbol)A symbol that indicates how to print a segno:
bar-lineormark.startRepeatBarType(string)Bar line to insert at the start of a
\repeat volta. The default is ‘.|:’.startRepeatSegnoBarType(string)Bar line to insert where an in-staff segno coincides with the start of a
\repeat volta. The default is ‘S.|:’.underlyingRepeatBarType(string)Bar line to insert at points of repetition or departure where no bar line would normally appear, for example at the end of a system broken in mid measure where the next system begins with a segno. Where there is also a repeat bar line, the repeat bar line takes precedence and this value is appended to it as an annotation. The default is ‘||’.
whichBar(string)The current bar line type, or
'()if there is no bar line. Setting this explicitly in user code is deprecated. Use\baror related commands to set it.Properties (write)
currentBarLine(graphical (layout) object)Set to the
BarLinethatBar_engraverhas created in the current timestep.forbidBreak(boolean)If set to
#t, prevent a line break at this point, except if explicitly requested by the user.This engraver creates the following layout object(s):
BarLine.Caesura_engraverNotate a short break in sound that does not shorten the previous note.
Depending on the result of passing the value of
caesuraTypethroughcaesuraTypeTransform, this engraver may create aBreathingSignwithCaesuraScriptgrobs aligned to it, or it may createCaesuraScriptgrobs and align them to aBarLine.If this engraver observes a
BarLine, it callscaesuraTypeTransformagain with the new information, and if necessary, recreates its grobs.Music types accepted:
caesura-eventProperties (read)
breathMarkDefinitions(list)The description of breath marks. This is used by the
Breathing_sign_engraver. See scm/breath.scm for more information.caesuraType(list)An alist
((bar-line . bar-type) (breath . breath-type) (scripts . script-type…) (underlying-bar-line . bar-type))specifying which breath mark, bar line, and scripts to create at
\caesura. All entries are optional.
bar-linehas higher priority than a measure bar line andunderlying-bar-linehas lower priority than a measure bar line.caesuraTypeTransform(procedure)An engraver callback taking three arguments and returning an alist of the same kind as
caesuraType.The first argument is the context.
The second argument is the value of
caesuraTypewith an additional entry(articulations . symbol-list)identifying the articulations attached to the caesura in the music. If the transform function returns this second argument unmodified, it is as if no transform function were set; the function is free to return a different value. The transform function can remove articulations, but any added articulations are ignored.The third argument is a symbol-list identifying certain things the engraver has observed.
bar-lineindicates that the engraver has observed aBarLineat the current moment.scriptDefinitions(list)The description of scripts. This is used by the
Script_engraverfor typesetting note-superscripts and subscripts. See scm/script.scm for more information.This engraver creates the following layout object(s):
BreathingSignandCaesuraScript.Clef_engraverDetermine and set reference point for pitches.
Properties (read)
clefGlyph(string)Name of the symbol within the music font.
clefPosition(number)Where should the center of the clef symbol go, measured in half staff spaces from the center of the staff.
clefTransposition(integer)Add this much extra transposition to a clef. Values of 7 and -7 are common.
clefTranspositionStyle(symbol)Determines the way the
ClefModifiergrob of a clef is displayed. Possible values are'default,'parenthesized, and'bracketed.explicitClefVisibility(vector)‘break-visibility’ function for clef changes.
forbidBreak(boolean)If set to
#t, prevent a line break at this point, except if explicitly requested by the user.forceBreak(boolean)Set to
#twhen an event forcing a line break was heard.forceClef(boolean)Show clef symbol, even if it has not changed. Only active for the first clef after the property is set, not for the full staff.
This engraver creates the following layout object(s):
ClefandClefModifier.Collision_engraverCollect
NoteColumns, and as soon as there are two or more, put them in aNoteCollisionobject.This engraver creates the following layout object(s):
NoteCollision.Cue_clef_engraverDetermine and set reference point for pitches in cued voices.
Properties (read)
clefTransposition(integer)Add this much extra transposition to a clef. Values of 7 and -7 are common.
cueClefGlyph(string)Name of the symbol within the music font.
cueClefPosition(number)Where should the center of the clef symbol go, measured in half staff spaces from the center of the staff.
cueClefTransposition(integer)Add this much extra transposition to a cue clef. Values of 7 and -7 are common.
cueClefTranspositionStyle(symbol)Determines the way the
ClefModifiergrob of a cue clef is displayed. Possible values are'default,'parenthesized, and'bracketed.explicitCueClefVisibility(vector)‘break-visibility’ function for cue clef changes.
forbidBreak(boolean)If set to
#t, prevent a line break at this point, except if explicitly requested by the user.forceBreak(boolean)Set to
#twhen an event forcing a line break was heard.middleCCuePosition(number)The position of the middle C, as determined only by the clef of the cue notes. This can be calculated by looking at
cueClefPositionandcueClefGlyph.This engraver creates the following layout object(s):
ClefModifier,CueClefandCueEndClef.Custos_engraverEngrave custodes.
Properties (read)
forbidBreak(boolean)If set to
#t, prevent a line break at this point, except if explicitly requested by the user.forceBreak(boolean)Set to
#twhen an event forcing a line break was heard.This engraver creates the following layout object(s):
Custos.Dot_column_engraverEngrave dots on dotted notes shifted to the right of the note. If omitted, then dots appear on top of the notes.
This engraver creates the following layout object(s):
DotColumn.Figured_bass_engraverMake figured bass numbers.
Music types accepted:
bass-figure-eventandrest-eventProperties (read)
figuredBassAlterationDirection(direction)Where to put alterations relative to the main figure.
figuredBassCenterContinuations(boolean)Whether to vertically center pairs of extender lines. This does not work with three or more lines.
figuredBassFormatter(procedure)A routine generating a markup for a bass figure.
ignoreFiguredBassRest(boolean)Don’t swallow rest events.
implicitBassFigures(list)A list of bass figures that are not printed as numbers, but only as extender lines.
useBassFigureExtenders(boolean)Whether to use extender lines for repeated bass figures.
This engraver creates the following layout object(s):
BassFigure,BassFigureAlignment,BassFigureBracket,BassFigureContinuationandBassFigureLine.Figured_bass_position_engraverPosition figured bass alignments over notes.
This engraver creates the following layout object(s):
BassFigureAlignmentPositioning.Fingering_column_engraverFind potentially colliding scripts and put them into a
FingeringColumnobject; that will fix the collisions.This engraver creates the following layout object(s):
FingeringColumn.Font_size_engraverPut
fontSizeintofont-sizegrob property.Properties (read)
fontSize(number)The relative size of all grobs in a context.
Grob_pq_engraverAdministrate when certain grobs (e.g., note heads) stop playing.
Properties (read)
busyGrobs(list)A queue of
(end-moment . grob)cons cells. This is for internal (C++) use only. This property contains the grobs which are still busy (e.g., note heads, spanners, etc.).Properties (write)
busyGrobs(list)A queue of
(end-moment . grob)cons cells. This is for internal (C++) use only. This property contains the grobs which are still busy (e.g., note heads, spanners, etc.).Horizontal_script_engraverAligns
ScripthorizontallyInstrument_name_engraverCreate a system start text for instrument or vocal names.
Properties (read)
currentCommandColumn(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
instrumentName(markup)The name to print left of a staff. The
instrumentNameproperty labels the staff in the first system, and theshortInstrumentNameproperty labels following lines.shortInstrumentName(markup)See
instrumentName.shortVocalName(markup)Name of a vocal line, short version.
vocalName(markup)Name of a vocal line.
This engraver creates the following layout object(s):
InstrumentName.Key_engraverEngrave a key signature.
Music types accepted:
key-change-eventProperties (read)
createKeyOnClefChange(boolean)Print a key signature whenever the clef is changed.
explicitKeySignatureVisibility(vector)‘break-visibility’ function for explicit key changes. ‘\override’ of the
break-visibilityproperty will set the visibility for normal (i.e., at the start of the line) key signatures.extraNatural(boolean)Whether to typeset an extra natural sign before accidentals that reduce the effect of a previous alteration.
forbidBreak(boolean)If set to
#t, prevent a line break at this point, except if explicitly requested by the user.forceBreak(boolean)Set to
#twhen an event forcing a line break was heard.keyAlterationOrder(list)A list of pairs that defines in what order alterations should be printed. The format of an entry is
(step . alter), where step is a number from 0 to 6 and alter from -1 (double flat) to 1 (double sharp), with exact rationals for alterations in between, e.g., 1/2 for sharp.keyAlterations(list)The current key signature. This is an alist containing
(step . alter)or((octave . step) . alter), where step is a number in the range 0 to 6 and alter a fraction, denoting alteration. For alterations, use symbols, e.g.,keyAlterations = #`((6 . ,FLAT)).lastKeyAlterations(list)Last key signature before a key signature change.
middleCClefPosition(number)The position of the middle C, as determined only by the clef. This can be calculated by looking at
clefPositionandclefGlyph.printKeyCancellation(boolean)Print restoration alterations before a key signature change.
Properties (write)
keyAlterations(list)The current key signature. This is an alist containing
(step . alter)or((octave . step) . alter), where step is a number in the range 0 to 6 and alter a fraction, denoting alteration. For alterations, use symbols, e.g.,keyAlterations = #`((6 . ,FLAT)).lastKeyAlterations(list)Last key signature before a key signature change.
tonic(pitch)The tonic of the current scale.
This engraver creates the following layout object(s):
KeyCancellationandKeySignature.Ledger_line_engraverCreate the spanner to draw ledger lines, and notices objects that need ledger lines.
This engraver creates the following layout object(s):
LedgerLineSpanner.Merge_mmrest_numbers_engraverEngraver to merge multi-measure rest numbers in multiple voices.
This works by gathering all multi-measure rest numbers at a time step. If they all have the same text and there are at least two only the first one is retained and the others are hidden.
Non_musical_script_column_engraverFind potentially colliding non-musical scripts and put them into a
ScriptColumnobject; that will fix the collisions.This engraver creates the following layout object(s):
ScriptColumn.Optional_material_bracket_engraverNotate in-staff brackets for optional material.
Music types accepted:
optional-material-eventThis engraver creates the following layout object(s):
OptionalMaterialBracket.Ottava_spanner_engraverCreate a text spanner when the ottavation property changes.
Music types accepted:
ottava-eventProperties (read)
currentMusicalColumn(graphical (layout) object)Grob that is X-parent to all non-breakable items (note heads, lyrics, etc.).
middleCOffset(number)The offset of middle C from the position given by
middleCClefPositionThis is used for ottava brackets.ottavation(markup)If set, the text for an ottava spanner. Changing this creates a new text spanner.
This engraver creates the following layout object(s):
OttavaBracket.Output_property_engraverApply a procedure to any grob acknowledged.
Music types accepted:
apply-output-eventPiano_pedal_align_engraverAlign piano pedal symbols and brackets.
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):
SostenutoPedalLineSpanner,SustainPedalLineSpannerandUnaCordaPedalLineSpanner.Piano_pedal_engraverEngrave piano pedal symbols and brackets.
Music types accepted:
sostenuto-event,sustain-eventanduna-corda-eventProperties (read)
currentCommandColumn(graphical (layout) object)Grob that is X-parent to all current breakable items (clef, key signature, etc.).
pedalSostenutoStrings(list)See
pedalSustainStrings.pedalSostenutoStyle(symbol)See
pedalSustainStyle.pedalSustainStrings(list)A list of strings to print for sustain-pedal. Format is
(up updown down), where each of the three is the string to print when this is done with the pedal.pedalSustainStyle(symbol)A symbol that indicates how to print sustain pedals:
text,bracketormixed(both).pedalUnaCordaStrings(list)See
pedalSustainStrings.pedalUnaCordaStyle(symbol)See
pedalSustainStyle.This engraver creates the following layout object(s):
PianoPedalBracket,SostenutoPedal,SustainPedalandUnaCordaPedal.Pure_from_neighbor_engraverCoordinates items that get their pure heights from their neighbors.
Rest_collision_engraverHandle collisions of rests.
Properties (read)
busyGrobs(list)A queue of
(end-moment . grob)cons cells. This is for internal (C++) use only. This property contains the grobs which are still busy (e.g., note heads, spanners, etc.).This engraver creates the following layout object(s):
RestCollision.Script_row_engraverDetermine order in horizontal side position elements.
This engraver creates the following layout object(s):
ScriptRow.Separating_line_group_engraverGenerate objects for computing spacing parameters.
Properties (read)
createSpacing(boolean)Create
StaffSpacingobjects? Should be set for staves.Properties (write)
hasStaffSpacing(boolean)True if
currentCommandColumncontains items that will affect spacing.This engraver creates the following layout object(s):
StaffSpacing.Signum_repetitionis_engraverCreate a
SignumRepetitionisat the end of a\repeat voltasection.Music types accepted:
volta-repeat-end-eventThis engraver creates the following layout object(s):
SignumRepetitionis.Skip_typesetting_engraverCreate a
StaffEllipsiswhenskipTypesettingis used.Properties (read)
skipTypesetting(boolean)If true, no typesetting is done, speeding up the interpretation phase. Useful for debugging large scores.
This engraver creates the following layout object(s):
StaffEllipsis.Staff_collecting_engraverMaintain the
stavesFoundvariable.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.
Staff_highlight_engraverHighlights music passages.
Music types accepted:
staff-highlight-eventProperties (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):
StaffHighlight.Staff_symbol_engraverCreate the constellation of five (default) staff lines.
Music types accepted:
staff-span-eventThis engraver creates the following layout object(s):
StaffSymbol.Time_signature_engraverCreate a
TimeSignaturewhenevertimeSignaturechanges.Music types accepted:
time-signature-eventProperties (read)
initialTimeSignatureVisibility(vector)break visibility for the initial time signature.
partialBusy(boolean)Signal that \partial acts at the current timestep.
timeSignature(time signature)A time-signature specification. See the
\timecommand.This engraver creates the following layout object(s):
TimeSignature.
| [ << Translation ] | [Top][Contents][Index] | [ Backend >> ] |
[ < Lyrics ] | [ Up: Contexts ] | [ MensuralVoice > ] |