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