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