[ << Translation ] | [Top][Contents][Index] | [ Backend >> ] |
[ < ChoirStaff ] | [ Up : Contexts ] | [ ChordGridScore > ] |
2.1.2 ChordGrid
Creates chord grid notation. This context is always part of
a ChordGridScore
context.
This context also accepts commands for the following context(s):
Staff
.
This context creates the following layout object(s):
BarLine
, ChordSquare
, DoublePercentRepeat
, DoublePercentRepeatCounter
, GridChordName
, PercentRepeat
, PercentRepeatCounter
, StaffSymbol
, SystemStartBar
, SystemStartBrace
, SystemStartBracket
, SystemStartSquare
and VerticalAxisGroup
.
This context sets the following properties:
- Set grob property
font-size
inBarLine
to3
. - Set grob property
hair-thickness
inBarLine
to2
. - Set grob property
kern
inBarLine
to5
. - Set grob property
line-positions
inStaffSymbol
to :'(-13.5 13.5)
- Set grob property
thickness
inStaffSymbol
to2
. - Set grob property
thickness
inSystemStartBar
to2
.
This is a ‘Bottom’ context; no contexts will be created implicitly from it.
This context cannot contain other contexts.
This context is built from the following engraver(s):
-
Alteration_glyph_engraver
Set the
glyph-name-alist
of all grobs having theaccidental-switch-interface
to the value of the context’salterationGlyphs
property, 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_engraver
Group all objects created in this context in a
VerticalAxisGroup
spanner.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-empty
set 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_engraver
Create bar lines for various commands, including
\\bar
.If
forbidBreakBetweenBarLines
is 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-event
,segno-mark-event
andvolta-span-event
Properties (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-line
has higher priority than a measure bar line andunderlying-bar-line
has 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
caesuraType
with 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-line
indicates that the engraver has observed aBarLine
at the current moment.-
doubleRepeatBarType
(string) Bar line to insert where the end of one
\repeat volta
coincides 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 volta
and 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
\fine
and the start of a\repeat volta
. The default is ‘|.S.|:’.-
forbidBreakBetweenBarLines
(boolean) If set to true,
Bar_engraver
forbids line breaks where there is no bar line.-
measureBarType
(string) Bar line to insert at a measure boundary.
-
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
End a repeated section.
-
start-repeat
Start a repeated section.
-
volta text
If 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-line
ormark
.-
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\bar
or related commands to set it.
Properties (write)
-
currentBarLine
(graphical (layout) object) Set to the
BarLine
thatBar_engraver
has 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
.-
-
Chord_square_engraver
Engrave chord squares in chord grids.
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):
ChordSquare
.-
-
Current_chord_text_engraver
Catch note and rest events and generate the appropriate chord text using
chordNameFunction
. Actually creating a chord name grob is left to other engravers.Music types accepted:
general-rest-event
andnote-event
Properties (read)
-
chordNameExceptions
(list) An alist of chord exceptions. Contains
(chord . markup)
entries.-
chordNameFunction
(procedure) The function that converts lists of pitches to chord names.
-
chordNoteNamer
(procedure) A function that converts from a pitch object to a text markup. Used for single pitches.
-
chordRootNamer
(procedure) A function that converts from a pitch object to a text markup. Used for chords.
-
majorSevenSymbol
(markup) How should the major 7th be formatted in a chord name?
-
noChordSymbol
(markup) Markup to be displayed for rests in a ChordNames context.
Properties (write)
-
currentChordCause
(stream event) Event cause of the chord that should be created in this time step (if any).
-
currentChordText
(markup) In contexts printing chord names, this is at any point of time the markup that will be put in the chord name.
-
-
Double_percent_repeat_engraver
Make double measure repeats.
Music types accepted:
double-percent-event
Properties (read)
-
countPercentRepeats
(boolean) If set, produce counters for percent repeats.
-
measureLength
(moment) Length of one measure in the current time signature.
-
repeatCountVisibility
(procedure) A procedure taking as arguments an integer and context, returning whether the corresponding percent repeat number should be printed when
countPercentRepeats
is set.
Properties (write)
-
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):
DoublePercentRepeat
andDoublePercentRepeatCounter
.-
-
Grid_chord_name_engraver
Read
currentChordText
to create chord names adapted for typesetting within a chord grid.Properties (read)
-
currentChordCause
(stream event) Event cause of the chord that should be created in this time step (if any).
-
currentChordText
(markup) In contexts printing chord names, this is at any point of time the markup that will be put in the chord name.
-
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):
GridChordName
.-
-
Output_property_engraver
Apply a procedure to any grob acknowledged.
Music types accepted:
apply-output-event
-
Percent_repeat_engraver
Make whole measure repeats.
Music types accepted:
percent-event
Properties (read)
-
countPercentRepeats
(boolean) If set, produce counters for percent repeats.
-
currentCommandColumn
(graphical (layout) object) Grob that is X-parent to all current breakable items (clef, key signature, etc.).
-
repeatCountVisibility
(procedure) A procedure taking as arguments an integer and context, returning whether the corresponding percent repeat number should be printed when
countPercentRepeats
is set.
This engraver creates the following layout object(s):
PercentRepeat
andPercentRepeatCounter
.-
-
Staff_symbol_engraver
Create the constellation of five (default) staff lines.
Music types accepted:
staff-span-event
This engraver creates the following layout object(s):
StaffSymbol
.-
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
.-
[ << Translation ] | [Top][Contents][Index] | [ Backend >> ] |
[ < ChoirStaff ] | [ Up : Contexts ] | [ ChordGridScore > ] |