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