]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-context-properties.scm
Brings accidentals closer to chords on average.
[lilypond.git] / scm / define-context-properties.scm
1 ;;;; This file is part of LilyPond, the GNU music typesetter.
2 ;;;;
3 ;;;; Copyright (C) 1998--2012  Han-Wen Nienhuys <hanwen@xs4all.nl>
4 ;;;;                  Jan Nieuwenhuizen <janneke@gnu.org>
5 ;;;;
6 ;;;; LilyPond is free software: you can redistribute it and/or modify
7 ;;;; it under the terms of the GNU General Public License as published by
8 ;;;; the Free Software Foundation, either version 3 of the License, or
9 ;;;; (at your option) any later version.
10 ;;;;
11 ;;;; LilyPond is distributed in the hope that it will be useful,
12 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ;;;; GNU General Public License for more details.
15 ;;;;
16 ;;;; You should have received a copy of the GNU General Public License
17 ;;;; along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18
19
20 (define-public all-translation-properties '())
21
22 (define (translator-property-description symbol type? description)
23   (if (not (and
24             (symbol? symbol)
25             (procedure? type?)
26             (string? description)))
27       (throw 'init-format-error))
28
29
30   (if (not (equal? #f (object-property symbol 'translation-doc)))
31       (ly:error (_ "symbol ~S redefined" symbol)))
32
33   (set-object-property! symbol 'translation-type? type?)
34   (set-object-property! symbol 'translation-doc description)
35   (set! all-translation-properties (cons symbol all-translation-properties))
36   symbol)
37
38
39 (define-public all-user-translation-properties
40   (map
41    (lambda (x)
42      (apply translator-property-description x))
43    `(
44
45      ;; TODO FIXME
46
47      (accidentalGrouping ,symbol? "If set to @code{'voice}, accidentals
48 on the same note in different octaves may be horizontally staggered
49 if in different voices.")
50      (aDueText ,markup? "Text to print at a unisono passage.")
51      (additionalPitchPrefix ,string? "Text with which to prefix
52 additional pitches within a chord name.")
53      (alignAboveContext ,string? "Where to insert newly created context in
54 vertical alignment.")
55      (alignBassFigureAccidentals ,boolean? "If true, then the accidentals
56 are aligned in bass figure context.")
57      (alignBelowContext ,string? "Where to insert newly created context in
58 vertical alignment.")
59      (alternativeNumberingStyle ,symbol? "The style of an alternative's bar
60 numbers.  Can be @code{numbers} for going back to the same number or
61 @code{numbers-with-letters} for going back to the same number with letter
62 suffixes.  No setting will not go back in measure-number time.")
63      (associatedVoice ,string? "Name of the @code{Voice} that has the
64 melody for this @code{Lyrics} line.")
65      (autoAccidentals ,list? "List of different ways to typeset an
66 accidental.
67
68 For determining when to print an accidental, several different rules
69 are tried.  The rule that gives the highest number of accidentals is
70 used.
71
72 Each entry in the list is either a symbol or a procedure.
73
74 @table @var
75
76 @item symbol
77 The symbol is the name of the context in which the following rules are to be
78 applied.  For example, if @var{context} is @rinternals{Score} then all
79 staves share accidentals, and if @var{context} is @rinternals{Staff} then
80 all voices in the same staff share accidentals, but staves do not.
81
82 @item procedure
83 The procedure represents an accidental rule to be applied to the previously
84 specified context.
85
86 The procedure takes the following arguments:
87
88 @table @code
89
90 @item context
91 The current context to which the rule should be applied.
92
93 @item pitch
94 The pitch of the note to be evaluated.
95
96 @item barnum
97 The current bar number.
98
99 @item measurepos
100 The current measure position.
101
102 @end table
103
104 The procedure returns a pair of booleans.  The first states whether an extra
105 natural should be added.  The second states whether an accidental should be
106 printed.  @code{(#t . #f)} does not make sense.
107
108 @end table")
109      (autoBeamCheck ,procedure? "A procedure taking three
110 arguments, @var{context}, @var{dir} [start/@/stop (-1 or 1)], and
111 @var{test} [shortest note in the beam].  A non-@code{#f} return value
112 starts or stops the auto beam.")
113      (autoBeaming ,boolean? "If set to true then beams are generated
114 automatically.")
115      (autoCautionaries ,list? "List similar to @code{autoAccidentals},
116 but it controls cautionary accidentals rather than normal ones.  Both
117 lists are tried, and the one giving the most accidentals wins.  In
118 case of draw, a normal accidental is typeset.")
119      (automaticBars ,boolean? "If set to false then bar lines will not
120 be printed automatically; they must be explicitly created with a
121 @code{\\bar} command.  Unlike the @code{\\cadenzaOn} keyword, measures
122 are still counted.  Bar line generation will resume according to that
123 count if this property is unset.")
124
125
126      (barAlways ,boolean? "If set to true a bar line is drawn after
127 each note.")
128      (barCheckSynchronize ,boolean? "If true then reset
129 @code{measurePosition} when finding a bar check.")
130      (barNumberFormatter ,procedure? "A procedure that takes a bar
131 number, measure position, and alternative number and returns a markup
132 of the bar number to print.")
133      (barNumberVisibility ,procedure? "A procedure that takes a bar
134 number and a measure position and returns whether the corresponding
135 bar number should be printed.")
136      (baseMoment ,ly:moment? "Smallest unit of time that will stand on its
137 own as a subdivided section.")
138      (bassFigureFormatFunction ,procedure? "A procedure that is
139 called to produce the formatting for a @code{BassFigure} grob.  It
140 takes a list of @code{BassFigureEvent}s, a context, and the grob to
141 format.")
142      (bassStaffProperties ,list? "An alist of property settings to
143 apply for the down staff of @code{PianoStaff}.  Used by
144 @code{\\autochange}.")
145      (beamExceptions ,list? "An alist of exceptions to autobeam rules
146 that normally end on beats.")
147      (beamHalfMeasure ,boolean? "Whether to allow a beam to begin
148 halfway through the measure in triple time, which could look like 6/8.")
149      (beatStructure ,list? "List of @code{baseMoment}s that are combined
150 to make beats.")
151
152      (chordChanges ,boolean? "Only show changes in chords scheme?")
153      (chordNameExceptions ,list? "An alist of chord exceptions.
154 Contains @code{(@var{chord} . @var{markup})} entries.")
155      (chordNameExceptionsFull ,list? "An alist of full chord
156 exceptions.  Contains @code{(@var{chord} . @var{markup})} entries.")
157      (chordNameExceptionsPartial ,list? "An alist of partial chord
158 exceptions.  Contains @code{(@var{chord} . (@var{prefix-markup}
159 @var{suffix-markup}))} entries.")
160      (chordNameFunction ,procedure? "The function that converts lists
161 of pitches to chord names.")
162      (chordNameLowercaseMinor ,boolean? "Downcase roots of minor chords?")
163      (chordNameSeparator ,markup? "The markup object used to
164 separate parts of a chord name.")
165      (slashChordSeparator ,markup? "The markup object used to separate
166 a chord name from its root note in case of inversions or slash
167 chords.")
168      (chordNoteNamer ,procedure? "A function that converts from a pitch
169 object to a text markup.  Used for single pitches.")
170      (chordPrefixSpacer ,number? "The space added between the root
171 symbol and the prefix of a chord name.")
172      (chordRootNamer ,procedure? "A function that converts from a pitch
173 object to a text markup.  Used for chords.")
174      (clefGlyph ,string? "Name of the symbol within the music font.")
175      (clefOctavation ,integer? "Add this much extra octavation.
176 Values of 7 and -7 are common.")
177      (clefOctavationFormatter ,procedure? "A procedure that takes the
178 Octavation number as a string and the style as a symbol and returns a markup.")
179      (clefOctavationStyle ,symbol? "Determines the way the octavateEight
180 grob is displayed.  Possible values are @samp{default}, @samp{parenthesized}
181 and @samp{bracketed}.")
182      (clefPosition ,number? "Where should the center of the clef
183 symbol go, measured in half staff spaces from the center of the
184 staff.")
185      (completionBusy ,boolean? "Whether a completion-note head is playing.")
186      (completionUnit ,ly:moment? "Sub-bar unit of completion.")
187      (connectArpeggios ,boolean? "If set, connect arpeggios across
188 piano staff.")
189      (countPercentRepeats ,boolean? "If set, produce counters for
190 percent repeats.")
191      (createKeyOnClefChange ,boolean? "Print a key signature whenever
192 the clef is changed.")
193      (createSpacing ,boolean? "Create @code{StaffSpacing} objects?
194 Should be set for staves.")
195      (crescendoSpanner ,symbol? "The type of spanner to be used for
196 crescendi.  Available values are @samp{hairpin} and @samp{text}.  If unset,
197 a hairpin crescendo is used.")
198      (crescendoText ,markup? "The text to print at start of non-hairpin
199 crescendo, i.e., @samp{cresc.}.")
200      (cueClefGlyph ,string? "Name of the symbol within the music font.")
201      (cueClefOctavation ,integer? "Add this much extra octavation.
202 Values of 7 and -7 are common.")
203      (cueClefOctavationFormatter ,procedure? "A procedure that takes the
204 Octavation number as a string and the style as a symbol and returns a markup.")
205      (cueClefOctavationStyle ,symbol? "Determines the way the octavateEight
206 grob is displayed.  Possible values are @samp{default}, @samp{parenthesized}
207 and @samp{bracketed}.")
208      (cueClefPosition ,number? "Where should the center of the clef
209 symbol go, measured in half staff spaces from the center of the
210 staff.")
211      (currentBarNumber ,integer? "Contains the current barnumber.
212 This property is incremented at every bar line.")
213
214
215      (decrescendoSpanner ,symbol? "The type of spanner to be used for
216 decrescendi.  Available values are @samp{hairpin} and @samp{text}.  If
217 unset, a hairpin decrescendo is used.")
218      (decrescendoText ,markup? "The text to print at start of
219 non-hairpin decrescendo, i.e., @samp{dim.}.")
220      (defaultBarType ,string? "Set the default type of bar line.  See
221 @code{whichBar} for information on available bar types.
222
223 This variable is read by @rinternals{Timing_translator} at
224 @rinternals{Score} level.")
225      (defaultStrings ,list? "A list of strings to use in calculating
226 frets for tablatures and fretboards if no strings are provided in
227 the notes for the current moment.")
228      (doubleRepeatSegnoType ,string? "Set the default bar line for
229 the combinations double repeat with segno. Default is @samp{:|.S.|:}.")
230      (doubleRepeatType ,string? "Set the default bar line for double
231 repeats.")
232      (doubleSlurs ,boolean? "If set, two slurs are created for every
233 slurred note, one above and one below the chord.")
234      (drumPitchTable ,hash-table? "A table mapping percussion
235 instruments (symbols) to pitches.")
236      (drumStyleTable ,hash-table? "A hash table which maps drums to
237 layout settings.  Predefined values: @samp{drums-style},
238 @samp{timbales-style}, @samp{congas-style}, @samp{bongos-style}, and
239 @samp{percussion-style}.
240
241 The layout style is a hash table, containing the drum-pitches (e.g.,
242 the symbol @samp{hihat}) as keys, and a list
243 @code{(@var{notehead-style} @var{script} @var{vertical-position})} as
244 values.")
245
246      (endRepeatSegnoType ,string? "Set the default bar line for the
247 combinations ending of repeat with segno. Default is @samp{:|.S}.")
248      (endRepeatType ,string? "Set the default bar line for the ending
249 of repeats.")
250      (explicitClefVisibility ,vector? "@samp{break-visibility}
251 function for clef changes.")
252      (explicitCueClefVisibility ,vector? "@samp{break-visibility}
253 function for cue clef changes.")
254      (explicitKeySignatureVisibility ,vector? "@samp{break-visibility}
255 function for explicit key changes.  @samp{\\override} of the
256 @code{break-visibility} property will set the visibility for normal
257 (i.e., at the start of the line) key signatures.")
258      (extendersOverRests ,boolean? "Whether to continue extenders as
259 they cross a rest.")
260      (extraNatural ,boolean? "Whether to typeset an extra natural sign
261 before accidentals that reduce the effect of a previous alteration.")
262
263
264      (figuredBassAlterationDirection ,ly:dir? "Where to put alterations
265 relative to the main figure.")
266      (figuredBassCenterContinuations ,boolean? "Whether to vertically
267 center pairs of extender lines.  This does not work with three or more
268 lines.")
269      (figuredBassFormatter ,procedure? "A routine generating a markup
270 for a bass figure.")
271      (figuredBassPlusDirection ,ly:dir? "Where to put plus signs
272 relative to the main figure.")
273      (fingeringOrientations ,list? "A list of symbols, containing
274 @samp{left}, @samp{right}, @samp{up} and/@/or @samp{down}.  This list
275 determines where fingerings are put relative to the chord being
276 fingered.")
277      (firstClef ,boolean? "If true, create a new clef when starting a
278 staff.")
279      (followVoice ,boolean? "If set, note heads are tracked across
280 staff switches by a thin line.")
281      (fontSize ,number? "The relative size of all grobs in a context.")
282      (forbidBreak ,boolean? "If set to @code{#t}, prevent a line break
283 at this point.")
284      (forceClef ,boolean? "Show clef symbol, even if it has not
285 changed.  Only active for the first clef after the property is set, not
286 for the full staff.")
287      (fretLabels ,list? "A list of strings or Scheme-formatted markups
288 containing, in the correct order, the labels to be used for lettered
289 frets in tablature.")
290
291
292      (glissandoMap ,list? "A map in the form of '((source1 . target1)
293 (source2 . target2) (sourcen . targetn)) showing the glissandi to
294 be drawn for note columns.  The value '() will default to '((0 . 0)
295 (1 . 1) (n . n)), where n is the minimal number of note-heads in
296 the two note columns between which the glissandi occur.")
297      (gridInterval ,ly:moment? "Interval for which to generate
298 @code{GridPoint}s.")
299
300
301      (handleNegativeFrets ,symbol? "How the automatic fret calculator
302 should handle calculated negative frets.  Values include @code{'ignore},
303 to leave them out of the diagram completely, @code{'include}, to include
304 them as calculated, and @code{'recalculate}, to ignore the specified
305 string and find a string where they will fit with a positive fret number.")
306      (harmonicAccidentals ,boolean? "If set, harmonic notes in chords
307 get accidentals.")
308      (harmonicDots ,boolean? "If set, harmonic notes in dotted chords get
309 dots.")
310      (highStringOne ,boolean? "Whether the first string is the string
311 with highest pitch on the instrument.  This used by the automatic
312 string selector for tablature notation.")
313
314
315      (ignoreBarChecks ,boolean? "Ignore bar checks.")
316      (ignoreFiguredBassRest ,boolean? "Don't swallow rest events.")
317      (ignoreMelismata ,boolean? "Ignore melismata for this
318 @rinternals{Lyrics} line.")
319      (implicitBassFigures ,list? "A list of bass figures that are not
320 printed as numbers, but only as extender lines.")
321      (implicitTimeSignatureVisibility ,vector? "break visibility for
322 the default time signature.")
323      (includeGraceNotes ,boolean? "Do not ignore grace notes for
324 @rinternals{Lyrics}.")
325      (instrumentCueName ,markup? "The name to print if another
326 instrument is to be taken.")
327      (instrumentEqualizer ,procedure? "A function taking a string
328 (instrument name), and returning a @code{(@var{min} . @var{max})} pair
329 of numbers for the loudness range of the instrument.")
330      (instrumentName ,markup? "The name to print left of a staff.  The
331 @code{instrumentName} property labels the staff in the first system, and
332 the @code{shortInstrumentName} property labels following lines.")
333      ;; the definition is reversed wrt traditional transposition
334      ;; otherwise \transpose { \transposition .. } won't work
335      (instrumentTransposition ,ly:pitch? "Define the transposition of
336 the instrument.  Its value is the pitch that sounds like middle@tie{}C.
337 This is used to transpose the MIDI output, and @code{\\quote}s.")
338      (internalBarNumber ,integer? "Contains the current barnumber.
339 This property is used for internal timekeeping, among others by the
340 @code{Accidental_engraver}.")
341
342
343      (keepAliveInterfaces ,list? "A list of symbols, signifying grob
344 interfaces that are worth keeping a staff with @code{remove-empty} set
345 around for.")
346      (keyAlterationOrder ,list? "An alist that defines in what order
347 alterations should be printed.  The format is @code{(@var{step}
348 . @var{alter})}, where @var{step} is a number from 0 to@tie{}6 and
349 @var{alter} from -2 (sharp) to 2 (flat).")
350      (keySignature ,list? "The current key signature.  This is an alist
351 containing @code{(@var{step} . @var{alter})} or @code{((@var{octave} .
352 @var{step}) . @var{alter})},  where @var{step} is a number in the range
353 0 to@tie{}6 and @var{alter} a fraction, denoting alteration.  For
354 alterations, use symbols, e.g. @code{keySignature = #`((6 . ,FLAT))}.")
355
356
357      (lyricMelismaAlignment ,number? "Alignment to use for a melisma syllable.")
358
359
360      (majorSevenSymbol ,markup? "How should the major 7th be formatted
361 in a chord name?")
362      (markFormatter ,procedure? "A procedure taking as arguments the
363 context and the rehearsal mark.  It should return the formatted mark as
364 a markup object.")
365      (maximumFretStretch ,number? "Don't allocate frets further than
366 this from specified frets.")
367      (measureLength ,ly:moment? "Length of one measure in the current
368 time signature.")
369      (measurePosition ,ly:moment? "How much of the current measure have
370 we had.  This can be set manually to create incomplete measures.")
371      (melismaBusyProperties ,list? "A list of properties (symbols) to
372 determine whether a melisma is playing.  Setting this property will
373 influence how lyrics are aligned to notes.  For example, if set to
374 @code{'(melismaBusy beamMelismaBusy)}, only manual melismata and
375 manual beams are considered.  Possible values include
376 @code{melismaBusy}, @code{slurMelismaBusy}, @code{tieMelismaBusy}, and
377 @code{beamMelismaBusy}.")
378      (metronomeMarkFormatter ,procedure? "How to produce a metronome
379 markup.  Called with two arguments: a @code{TempoChangeEvent} and context.")
380      (middleCClefPosition ,number? "The position of the middle C,
381 as determined only by the clef.  This can be calculated by looking at
382 @code{clefPosition} and @code{clefGlyph}.")
383      (middleCCuePosition ,number? "The position of the middle C,
384 as determined only by the clef of the cue notes.  This can be calculated by
385 looking at @code{cueClefPosition} and @code{cueClefGlyph}.")
386      (middleCOffset ,number? "The offset of
387 middle C from the position given by @code{middleCClefPosition} This
388 is used for ottava brackets.")
389      (middleCPosition ,number? "The place of the middle C, measured in
390 half staff-spaces.  Usually determined by looking at
391 @code{middleCClefPosition} and @code{middleCOffset}.")
392      (midiInstrument ,string? "Name of the MIDI instrument to use.")
393      (midiMergeUnisons ,boolean? "If true, output only one MIDI note-on
394 event when notes with the same pitch, in the same MIDI-file track, overlap.")
395      (midiMaximumVolume ,number? "Analogous to
396 @code{midiMinimumVolume}.")
397      (midiMinimumVolume ,number? "Set the minimum loudness for MIDI.
398 Ranges from 0 to@tie{}1.")
399      (midiChannelMapping ,symbol? "How to map MIDI channels: per @code{instrument} (default), @code{staff} or @code{voice}.")
400      (minimumFret ,number? "The tablature auto string-selecting
401 mechanism selects the highest string with a fret at least
402 @code{minimumFret}.")
403      (minimumPageTurnLength ,ly:moment? "Minimum length of a rest for a
404 page turn to be allowed.")
405      (minimumRepeatLengthForPageTurn ,ly:moment? "Minimum length of a
406 repeated section for a page turn to be allowed within that section.")
407
408      (minorChordModifier ,markup? "Markup displayed following the root
409 for a minor chord")
410
411      (noChordSymbol ,markup? "Markup to be displayed for rests in a
412 ChordNames context.")
413      (noteToFretFunction ,procedure? "Convert list of notes and list of
414 defined strings to full list of strings and fret numbers.
415 Parameters: The context, a list of note events, a list of
416 tabstring events, and the fretboard grob if a fretboard is desired.")
417
418
419      (ottavation ,markup? "If set, the text for an ottava spanner.
420 Changing this creates a new text spanner.")
421      (output ,ly:music-output? "The output produced by a score-level
422 translator during music interpretation.")
423
424
425      (partCombineTextsOnNote ,boolean? "Print part-combine texts only on
426 the next note rather than immediately on rests or skips.")
427      (pedalSostenutoStrings ,list? "See @code{pedalSustainStrings}.")
428      (pedalSostenutoStyle ,symbol? "See @code{pedalSustainStyle}.")
429      (pedalSustainStrings ,list? "A list of strings to print for
430 sustain-pedal.  Format is @code{(@var{up} @var{updown} @var{down})},
431 where each of the three is the string to print when this is done with
432 the pedal.")
433      (pedalSustainStyle ,symbol? "A symbol that indicates how to print
434 sustain pedals: @code{text}, @code{bracket} or @code{mixed} (both).")
435      (pedalUnaCordaStrings ,list? "See @code{pedalSustainStrings}.")
436      (pedalUnaCordaStyle ,symbol? "See @code{pedalSustainStyle}.")
437      (predefinedDiagramTable ,hash-table? "The hash table of predefined
438 fret diagrams to use in FretBoards.")
439      (printKeyCancellation ,boolean? "Print restoration alterations
440 before a key signature change.")
441      (printOctaveNames ,boolean? "Print octave marks for the
442 @code{NoteNames} context.")
443      (printPartCombineTexts ,boolean? "Set @q{Solo} and @q{A due} texts
444 in the part combiner?")
445      (proportionalNotationDuration ,ly:moment? "Global override for
446 shortest-playing duration.  This is used for switching on proportional
447 notation.")
448
449
450      (rehearsalMark ,integer? "The last rehearsal mark printed.")
451      (repeatCommands ,list? "This property is a list of commands
452 of the form @code{(list 'volta @var{x})}, where @var{x} is a string or
453 @code{#f}.  @code{'end-repeat} is also accepted as a command.")
454      (repeatCountVisibility ,procedure? "A procedure taking as
455 arguments an integer and context, returning whether the corresponding
456 percent repeat number should be printed when @code{countPercentRepeats}
457 is set.")
458      (restCompletionBusy ,boolean? "Signal whether a completion-rest is active.")
459      (restNumberThreshold ,number? "If a multimeasure rest has more
460 measures than this, a number is printed.")
461      (restrainOpenStrings ,boolean? "Exclude open strings from the
462 automatic fret calculator.")
463
464      (searchForVoice ,boolean? "Signal whether a search should be made
465 of all contexts in the context hierarchy for a voice to provide rhythms
466 for the lyrics.")
467      (segnoType ,string? "Set the default bar line for a requested segno.
468 Default is @samp{S}.")
469      (shapeNoteStyles ,vector? "Vector of symbols, listing style for
470 each note head relative to the tonic (qv.) of the scale.")
471      (shortInstrumentName ,markup? "See @code{instrumentName}.")
472      (shortVocalName ,markup? "Name of a vocal line, short version.")
473      (skipBars ,boolean? "If set to true, then skip the empty bars
474 that are produced by multimeasure notes and rests.  These bars will
475 not appear on the printed output.  If not set (the default),
476 multimeasure notes and rests expand into their full length, printing
477 the appropriate number of empty bars so that synchronization with other
478 voices is preserved.
479
480 @example
481 @{
482   r1 r1*3 R1*3
483   \\set Score.skipBars= ##t
484   r1*3 R1*3
485 @}
486 @end example")
487      (skipTypesetting ,boolean? "If true, no typesetting is done,
488 speeding up the interpretation phase.  Useful for debugging large
489 scores.")
490      (soloIIText ,markup? "The text for the start of a solo for
491 voice @q{two} when part-combining.")
492      (soloText ,markup? "The text for the start of a solo when
493 part-combining.")
494      (squashedPosition ,integer? "Vertical position of squashing for
495 @rinternals{Pitch_squash_engraver}.")
496      (staffLineLayoutFunction ,procedure? "Layout of staff lines,
497 @code{traditional}, or @code{semitone}.")
498      (stanza ,markup? "Stanza @q{number} to print before the start of a
499 verse.  Use in @code{Lyrics} context.")
500      (startRepeatSegnoType ,string? "Set the default bar line for the
501 combinations beginning of repeat with segno. Default is @samp{S.|:}.")
502      (startRepeatType ,string? "Set the default bar line for the beginning
503 of repeats.")
504      (stemLeftBeamCount ,integer? "Specify the number of beams to draw
505 on the left side of the next note.  Overrides automatic beaming.  The
506 value is only used once, and then it is erased.")
507      (stemRightBeamCount ,integer? "See @code{stemLeftBeamCount}.")
508      (strictBeatBeaming ,boolean? "Should partial beams reflect the
509 beat structure even if it causes flags to hang out?")
510      (stringNumberOrientations ,list? "See
511 @code{fingeringOrientations}.")
512      (stringOneTopmost ,boolean? "Whether the first string is
513 printed on the top line of the tablature.")
514      (stringTunings ,list? "The tablature strings tuning.  It is a list
515 of the pitches of each string (starting with the lowest numbered
516 one).")
517      (strokeFingerOrientations ,list? "See
518 @code{fingeringOrientations}.")
519      (subdivideBeams ,boolean? "If set, multiple beams will be
520 subdivided at @code{baseMoment} positions by only drawing one beam over the beat.")
521      (suggestAccidentals ,boolean? "If set, accidentals are typeset as
522 cautionary suggestions over the note.")
523      (systemStartDelimiter ,symbol? "Which grob to make for the start
524 of the system/@/staff?  Set to @code{SystemStartBrace},
525 @code{SystemStartBracket} or @code{SystemStartBar}.")
526      (systemStartDelimiterHierarchy ,pair? "A nested list, indicating
527 the nesting of a start delimiters.")
528
529
530      (tablatureFormat ,procedure? "A function formatting a tablature
531 note head.  Called with three arguments: context, string number and,
532 fret number.  It returns the text as a markup.")
533      (tabStaffLineLayoutFunction ,procedure? "A function determining the
534 staff position of a tablature note head.  Called with two arguments:
535 the context and the string.")
536      (tempoHideNote ,boolean? "Hide the note = count in tempo marks.")
537      (tempoWholesPerMinute ,ly:moment? "The tempo in whole notes per
538 minute.")
539      (tieWaitForNote ,boolean? "If true, tied notes do not have to
540 follow each other directly.  This can be used for writing out
541 arpeggios.")
542      (timeSignatureFraction ,fraction? "A pair of numbers,
543 signifying the time signature.  For example, @code{'(4 . 4)} is a
544 4/4 time signature.")
545      (timeSignatureSettings ,cheap-list? "A nested alist of settings for
546 time signatures.  Contains elements for various time signatures.  The
547 element for each time signature contains entries for @code{baseMoment},
548 @code{beatStructure}, and @code{beamExceptions}.")
549      (timing ,boolean? "Keep administration of measure length,
550 position, bar number, etc.?  Switch off for cadenzas.")
551      (tonic ,ly:pitch? "The tonic of the current scale.")
552      (topLevelAlignment ,boolean? "If true, the @var{Vertical_align_engraver}
553 will create a @var{VerticalAlignment}; otherwise, it will create a
554 @var{StaffGrouper}")
555      (trebleStaffProperties ,list? "An alist of property settings to
556 apply for the up staff of @code{PianoStaff}.  Used by
557 @code{\\autochange}.")
558      (tremoloFlags ,integer? "The number of tremolo flags to add if no
559 number is specified.")
560      (tupletFullLength ,boolean? "If set, the tuplet is printed up to
561 the start of the next note.")
562      (tupletFullLengthNote ,boolean? "If set, end at the next note,
563 otherwise end on the matter (time signatures, etc.) before the note.")
564      (tupletSpannerDuration ,ly:moment? "Normally, a tuplet bracket is
565 as wide as the @code{\\times} expression that gave rise to it.  By
566 setting this property, you can make brackets last shorter.
567
568 @example
569 @{
570   \\set tupletSpannerDuration = #(ly:make-moment 1 4)
571   \\times 2/3 @{ c8 c c c c c @}
572 @}
573 @end example")
574
575
576      (useBassFigureExtenders ,boolean? "Whether to use extender lines
577 for repeated bass figures.")
578
579      (vocalName ,markup? "Name of a vocal line.")
580      (voltaSpannerDuration ,ly:moment? "This specifies the maximum
581 duration to use for the brackets printed for @code{\\alternative}.
582 This can be used to shrink the length of brackets in the situation
583 where one alternative is very large.")
584
585
586      (whichBar ,string? "This property is read to determine what type
587 of bar line to create.
588
589 Example:
590
591 @example
592 \\set Staff.whichBar = \".|:\"
593 @end example
594
595 @noindent
596 This will create a start-repeat bar in this staff only.  Valid values
597 are described in @file{scm/bar-line.scm}.")
598      )))
599
600
601 (define-public all-internal-translation-properties
602   (map
603    (lambda (x)
604      (set-object-property! (car x) 'internal-translation #t)
605      (apply translator-property-description x))
606
607    `(
608      (EventClasses ,cheap-list? "The initial list of event classes.")
609
610      (associatedVoiceContext ,ly:context? "The context object of the
611 @code{Voice} that has the melody for this @code{Lyrics}.")
612
613
614      (barCheckLastFail ,ly:moment? "Where in the measure did the last
615 barcheck fail?")
616      (beamMelismaBusy ,boolean? "Signal if a beam is present.")
617      (busyGrobs ,list? "A queue of @code{(@var{end-moment} .
618 @var{grob})} cons cells.  This is for internal (C++) use only.  This
619 property contains the grobs which are still busy (e.g. note heads,
620 spanners, etc.).")
621
622
623      (currentCommandColumn ,ly:grob? "Grob that is X-parent to all
624 current breakable (clef, key signature, etc.) items.")
625      (currentMusicalColumn ,ly:grob? "Grob that is X-parent to all
626 non-breakable items (note heads, lyrics, etc.).")
627
628
629      (dynamicAbsoluteVolumeFunction ,procedure? "A procedure that takes
630 one argument, the text value of a dynamic event, and returns the absolute
631 volume of that dynamic event.")
632
633
634      (finalizations ,list? "A list of expressions to evaluate before
635 proceeding to next time step.  This is an internal variable.")
636
637
638      (graceSettings ,list? "Overrides for grace notes.  This property
639 should be manipulated through the @code{add-grace-property} function.")
640
641      (hasStaffSpacing ,boolean? "True if the current
642 @code{CommandColumn} contains items that will affect spacing.")
643
644
645      (lastKeySignature ,list? "Last key signature before a key
646 signature change.")
647      (localKeySignature ,list? "The key signature at this point in the
648 measure.  The format is the same as for @code{keySignature}, but can
649 also contain @code{((@var{octave} . @var{name}) . (@var{alter}
650 @var{barnumber} . @var{measureposition}))} pairs.")
651
652
653      (melismaBusy ,boolean? "Signifies whether a melisma is active.
654 This can be used to signal melismas on top of those automatically
655 detected.")
656
657
658      (quotedCueEventTypes ,list? "A list of symbols, representing the
659 event types that should be duplicated for @code{\\cueDuring} commands.")
660      (quotedEventTypes ,list? "A list of symbols, representing the
661 event types that should be duplicated for @code{\\quoteDuring} commands.
662 This is also a fallback for @code{\\cueDuring} if @code{quotedCueEventTypes}
663 is not set")
664
665
666      (rootSystem ,ly:grob? "The System object.")
667
668
669      (scriptDefinitions ,list? "The description of scripts.  This is
670 used by the @code{Script_engraver} for typesetting note-superscripts
671 and subscripts.  See @file{scm/@/script.scm} for more information.")
672      (slurMelismaBusy ,boolean? "Signal if a slur is present.")
673      (stavesFound ,grob-list? "A list of all staff-symbols found.")
674
675
676      (tieMelismaBusy ,boolean? "Signal whether a tie is present.")
677      )))
678
679 (define-public all-translation-properties
680   (append all-user-translation-properties
681           all-internal-translation-properties))
682
683 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
684
685 (define-public default-melisma-properties
686   '(melismaBusy slurMelismaBusy tieMelismaBusy beamMelismaBusy completionBusy))