]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grob-properties.scm
322ac184d084cca04cbd41339faef19c130c3084
[lilypond.git] / scm / define-grob-properties.scm
1 ;;;; grob-property-description.scm -- part of generated backend documentation
2 ;;;;
3 ;;;;  source file of the GNU LilyPond music typesetter
4 ;;;; 
5 ;;;; (c)  1998--2004  Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;;                 Jan Nieuwenhuizen <janneke@gnu.org>
7
8
9
10 (define (define-grob-property symbol type? description)
11   (if (not (equal? (object-property symbol 'backend-doc) #f))
12       (begin
13         (ly:warn (string-append "Redefining " (symbol->string symbol) "\n"))
14         (exit 2)
15       ))
16   
17   (set-object-property! symbol 'backend-type? type?)
18   (set-object-property! symbol 'backend-doc description)
19   symbol
20   )
21
22 ;; put this in an alist?
23 (define-public
24   all-user-grob-properties
25
26   (map
27    (lambda (x)
28      (apply define-grob-property x))
29
30    `(
31      (X-extent-callback ,procedure? "Procedure taking a grob and axis
32 argument, returning a number-pair. The return value is the extent of
33 the grob. If this value is set to @code{#f}, the object is empty in
34 the X direction.")
35
36      (X-offset-callbacks ,list? "list of functions, each taking an grob and
37 axis argument. The function determine the position relative to this
38 grob's parent. The last one in the list is called first.")
39
40      (Y-extent-callback ,procedure? "see @code{X-extent-callback}.")
41      (Y-offset-callbacks ,list? "see @code{X-offset-callbacks}.")
42
43      (accidentals ,list? "List of alteration numbers.")
44      (add-cauda ,boolean? "does this flexa require an additional cauda on the left ,side?.")
45      (add-join ,boolean? "is this ligature head joined with the next one by a vertical ,line?")
46      (add-stem ,boolean? "is this ligature head a virga and therefore needs an additional stem on the right ,side?")
47      (adjust-if-on-staffline ,boolean? "If this grob is on a staff line, adjust its appearance, so that it better fits into the staff.  E.g., if set true on stem grobs, flares of mensural flags will always be aligned with the staff lines, regardless if the associated note head is printed on a staff line or inbetween.")
48      (after-line-breaking-callback ,procedure? "Procedure taking a grob as argument.
49 This procedure is called (using dependency resolution) after line breaking. Return value is ignored.")
50      (align-dir ,ly:dir? "Which side to ,align? -1: left side, 0: around center of width, 1: right side.")
51      (arch-angle ,number? "turning angle of the hook of a system brace" )
52      (arch-height ,ly:dimension? "height of the hook of a system brace.")
53      (arch-thick ,number? "thickness of the hook of system brace.")
54      (arch-width ,ly:dimension? "width of the hook of a system brace.")
55      (arpeggio-direction ,ly:dir? "If set, put an
56 arrow on the arpeggio squiggly line.")
57      (ascendens ,boolean? "is this neume of an ,ascending?.")
58      (attachment ,pair? "cons of symbols
59 indicating how a slur should be attached at the ends. The format is
60 '(LEFT-TYPE . RIGHT-TYPE), where both TYPEs are symbols. The values of
61 these symbols may be alongside-stem, stem, head or loose-end.")
62      (attachment-offset ,pair? "cons of offsets,
63 '(LEFT-offset . RIGHT-offset).  This offset is added to the
64 attachments to prevent ugly slurs.  [fixme: we need more documentation here].
65 .")
66      (auctum ,boolean? "is this neume ,augmented?.")
67      (auto-knee-gap ,ly:dimension? "If a gap is found between noteheads
68 where a  horizontal beam fits that is larger than this number,  make a kneed beam.")
69      (axes ,list? "list of axis numbers.
70 In the case of alignment grobs, this should contain only one number.")
71
72      (balloon-text ,markup? "Text to add to help balloon")
73      (balloon-text-props ,list? "Font properties
74 for balloon text.")
75      (balloon-text-offset ,number-pair?
76                           "Where to put text relative to balloon.")
77      (balloon-padding ,ly:dimension? "Text to add to help balloon")
78      (balloon-original-callback ,procedure? "The
79 original molecule drawer to draw the balloon around.")
80
81
82      (bar-size ,ly:dimension? "size of a bar line.")
83      (bar-size-procedure ,procedure? "Procedure that computes the size of a bar line.")
84      (base-shortest-duration ,ly:moment?
85                              "Spacing is based on the shortest notes in a piece. Normally, pieces are spaced as if notes at least as short as this are present.")
86      (baseline-skip ,ly:dimension? "Baseline skip to use for multiple lines of text.")
87      (beam-thickness ,ly:dimension? "thickness, measured in staffspace.")
88      (beam-width ,ly:dimension? "width of the tremolo sign.")
89      (beamed-lengths ,list? "list of stem lengths given beam multiplicity .")
90      (beamed-minimum-free-lengths ,list? "list of normal minimum free stem lengths (chord to beams) given beam multiplicity.")
91      (beamed-extreme-minimum-free-lengths ,list? "list of extreme minimum free stem lengths (chord to beams) given beam multiplicity.")
92
93      (beamed-stem-shorten ,list? "shorten beamed stems in forced direction.")
94      (beaming ,pair?
95               "Pair of number lists. Each number list
96 specifies which beams to make. 0 is the central beam, 1 is the next
97 beam toward the note etc. This information is used to determine how to
98 connect the beaming patterns from stem to stem inside a beam.")
99
100
101      (beautiful ,number? "number that dictates when a slur should be de-uglyfied.  It correlates with the enclosed area between noteheads and slurs.  A value of 0.1 yields only undisturbed slurs, a value of 5 will tolerate quite high blown slurs.")
102      (before-line-breaking-callback ,procedure? "Procedure taking grob as argument.
103 This procedure is called (using dependency resolution) before line breaking, but after generating discretionary items. Return value is ignored.")
104      (between-cols ,pair? "Where to attach a loose column to")
105      (between-system-string ,string? "string
106  to dump between two systems. Useful for forcing pagebreaks.")
107      (bracket-thick ,number? "width of a system start bracket. .")
108      (break-align-symbol ,symbol? "the index in the spacing table (symbol) of the to be aligned item.")
109      (break-glyph-function ,procedure? "function taking glyph and break-direction, returning the glyph at a line break.")
110      (breakable ,boolean? "boolean indicating if this is a breakable item (clef, barline, key sig, etc.).")
111      (c0-position ,integer? "integer indicating the position of central C.")
112      (cautionary-style ,symbol? "style  of cautionary accidentals. Choices are 'smaller (one size smaller) or 'parentheses.")
113      (cautionary ,boolean? "is this a cautionary accidentals.?")
114      (cavum ,boolean? "is this neume ,outlined?.")
115
116      (concaveness-gap ,ly:dimension? "A beam is
117 considered to be concave if the distance of an inner notehead to the
118 line between two outer noteheads is bigger than this gap.")
119      (concaveness-threshold ,number? "A beam is
120 considered to be concave is concaveness is bigger than this threshold.
121 Concaveness is calculated as the sum of the vertical distances of
122 inner noteheads that fall outside the interval of the two outer
123 noteheads, to the vertically nearest outer notehead, divided by the
124 square of the inner notes involved.")
125      (collapse-height ,ly:dimension? "Minimum height of system start delimiter.  If equal or smaller, the bracket is removed.")
126
127      ;;DOCME
128      (context-info ,integer? "")
129
130      (control-points ,list? "List of 4 offsets (number-pairs) that form control points for the  tie/slur shape.")
131
132      (damping ,integer? "Amount of beam slope damping. 0: no, 1: yes, 100000: horizontal beams .")
133      (dash-period ,number? "the length of one dash + white space. If
134 negative, no line is drawn at all.")
135      
136      (dash-fraction ,number? "Size of the dashes, relative to
137 dash-period. Should be between 0.0 (no line) and 1.0 (continuous
138 line).")
139
140      ;; [FIXME: use dash-period/dash length; see text-spanner]
141      (dashed ,number? " number representing the length of the dashes.")
142      (descendens ,boolean? "is this neume of a descendent ,type?.")
143      
144      (de-uglify-parameters ,list? "list of 3 real constants. They
145 define the valid areas for the middle control points. Used in
146 de_uglyfy. They are empirical.")
147
148      (neutral-direction ,ly:dir? "Where to go if we're on the neutral
149 position of the staff (see also grob-property neutral-position).")
150
151      ;; todo: why is this tunable?
152      (neutral-position ,number? "Position (in half staff spaces) where
153 to flip the direction of stems: by default, custodes above this
154 position get their stems downwards; custodes below this position get
155 their stems upwards.  A value of 0 designates the center of the staff.
156 Use property neutral-direction to control the behaviour of stems on
157 the neutral position itself.  (Note: currently, neutral-position is
158 supported only for custodes; for stems of note heads, neutral-position
159 is currently fixed to 0, i.e. the middle of the staff.)")
160      
161      (deminutum ,boolean? "is this neume ,deminished?.")
162      (details ,list? "alist of parameters for detailed grob behavior.")
163      (dir-function ,procedure? "function of type (count total)->direction.  Default value: beam-dir-majority, also available: beam-dir-mean, beam-dir-median.
164
165 The ways to calculate the direction of a beam work as follows:
166 @table @code
167 @item majority
168 number count of up or down notes
169 @item mean
170 mean center distance of all notes
171 @item median
172 mean centre distance weighted per note
173 @end table
174
175 ")
176      (direction ,ly:dir? "Up or down, left or right?.")
177      (dot-count ,integer? "number of dots.")
178      (duration-log ,integer? "2-log of the notehead duration, i.e. 0=whole note, 1 = half note, etc.")
179      (edge-height ,pair? "a cons that specifies the heights of the vertical edges '(LEFT-height . RIGHT-height).")
180      (bracket-flare ,number-pair? "a pair that specifies how much
181 edges of brackets should slant outward.  Value 0.0 means straight
182 edges")
183
184      (edge-text ,pair? "a cons that specifies the texts to be set at the edges '(LEFT-text . RIGHT-text).")
185      (expand-limit ,integer? "maximum number of measures expanded in church rests.")
186
187      ;; remove me? 
188      (extra-X-extent ,number-pair? "enlarge in X dimension by this much, measured in staff space.")
189      (extra-Y-extent ,number-pair? "see @code{extra-Y-extent}.")
190
191      
192      (X-extent ,number-pair? "Store extent. internal use only. ")
193      (Y-extent ,number-pair? "Store extent. internal use only. ")
194
195      (extra-offset ,number-pair? "A pair representing an offset. This
196 offset is added just before `printing' the grob, so the typesetting
197 engine is completely oblivious to it.")
198
199      (extremity-offset-alist ,list? "an alist (attachment stem-dir*dir
200 slur-dir*dir) -> offset.  The offset adds to the centre of the
201 notehead, or stem.")
202
203      (extremity-rules ,list? "an alist (procedure
204 slur dir) -> attachment to determine the attachment (see above).  If
205 procedure returns #t, attachment is used.  Otherwise, the next
206 procedure is tried.")
207      
208      (flag-style ,symbol?
209                  "a string determining what style of glyph is typeset on a Stem. Valid
210 options include undefined and mensural.  Additionally, @code{no-flag}
211 switches off the flag.")
212      (stroke-style ,string? "set to \"grace\" to turn stroke through flag on.")
213      (flag-width-function ,procedure? "Procedure that computes the width of a half-beam (a non-connecting beam.).")
214      (flexa-height ,ly:dimension? "height of a flexa shape in a ligature grob in staff_space.")
215      (flexa-width ,ly:dimension? "width of a flexa shape in a ligature grob in staff_space.")
216      (font-family ,symbol? "partial font
217 definition: music roman braces dynamic math ...")
218      (font-name ,string? "file name for the font to load.
219 Overrides all other font-X qualifiers.")
220      (font-magnification ,number? "Magnification
221   of the font. If undefined, the default is @code{1.0}.")
222
223      (font-size ,number? "font definition: the relative size compared
224 the `normal' size.  0 is style-sheet's normal size, -1 is smaller, +1
225 is bigger.  Each step of 1 is approximately 12% larger, 6 steps are
226 exactly a factor 2 larger. Fractional values are allowed.")
227
228      (font-series ,symbol? "partial font definition: medium, bold.")
229      (font-shape ,symbol? "partial font definition: upright or italic.")
230
231      (force-hshift ,number? "amount of collision_note_width that
232 overides automatic collision settings. This is used by
233 @internalsref{note-collision-interface}.")
234
235      (fraction ,number-pair? "fraction of a time signature.")
236      (french-beaming ,boolean? "Use French
237 beaming style: stems stop at innermost beams.")
238      (full-size-change ,boolean? "if set, don't make a change clef smaller.")
239
240      (glyph ,string? "a string determining what (style) of glyph is
241 typeset. Valid choices depend on the function that is reading this
242 property.")
243
244      (glyph-name ,string? "a name of character within font.")
245      (glyph-name-procedure ,procedure? "Return
246 name of character within font.")
247
248      (gap ,ly:dimension? "Size of a gap in a variable symbol.")
249      (gap-count ,integer? "Number of gapped beams for tremolo.")
250
251      (grow-direction ,ly:dir? "crescendo or ,decrescendo?.")
252      (hair-thickness ,number? "thickness, measured in linethickness.")
253      (height ,ly:dimension? "in staffspace.")
254
255      (height-limit ,ly:dimension? "Maximum slur height: the longer the
256 slur, the closer it is to this height.")
257
258      (horizontal-shift ,integer? "integer that identifies ranking of
259 note-column for horizontal shifting. This is used by
260 @internalsref{note-collision-interface}.")
261      (ideal-distances ,list? "(OBJ . (DIST . STRENGTH)) pairs.")
262      (inclinatum ,boolean? "is this neume an ,inclinatum?.")
263      (interfaces ,list? "list of symbols indicating the interfaces supported by this object. Is initialized from the @code{meta} field.")
264      (join-heads ,boolean? "Whether to join the noteheads of an ambitus grob with a vertical line.")
265      (kern ,ly:dimension? "amount of extra white
266 space to add. For barline, space after a thick line.")
267      (knee ,boolean? "Is this beam a ,knee?")
268      (knee-spacing-correction ,number? "optical correction amount for knees. 0: no correction; 1: full correction.")
269      (layer ,number? "The output layer [0..2].  The default is 1.")
270
271      (ledger-line-thickness ,number-pair?
272                             "The thickness of ledger lines: it is the
273 sum of 2 numbers.  The car is the factor for linethickness, and the
274 cdr for staff space. Both contributions are added.")
275      
276      (left-position ,number? "position of left part of spanner.")
277      (left-padding ,ly:dimension? "space left of accs.")
278
279      (length ,ly:dimension? "Stem length for unbeamed stems, only for user override.")
280      (lengths ,list? "Stem length given
281 multiplicity of flag.  The Nth element of the list gives the stem
282 length of a note with N flags.
283 ")
284      (linea ,boolean? "attach vertical lines to this ,neume?.")
285      (line-count ,integer? "Number of staff
286 lines.  If you want to override this for staffs individually, you must
287 use @code{\\outputproperty}. @code{\\property .. \\override} will not
288 work: @code{\\override} is processed after the StaffSymbol is created,
289 and will have no effect.
290 ")
291      (maximum-rest-count ,integer? "kill off rests so we don't more than this number left.")
292      (measure-length ,ly:moment? "Length of a
293 measure. Used in some spacing situations.")
294      (measure-count ,integer? "number of measures for a multimeasure rest.")
295
296      (merge-differently-headed ,boolean? "Merge
297 noteheads in collisions, even if they have different note heads. The
298 smaller of the two heads will be rendered invisible. This used
299 polyphonic guitar notation. The value of this setting is used by
300 @internalsref{note-collision-interface} .")
301
302      (merge-differently-dotted ,boolean? " Merge
303 noteheads in collisions, even if they have a different number of
304 dots. This normal notation for some types of polyphonic music. The
305 value of this setting is used by @internalsref{note-collision-interface} .")
306
307      (meta ,list? "Contains meta information. It is an alist with the
308 entries @code{name} and @code{interfaces}.")
309
310      (minimum-distance ,ly:dimension? "Minimum distance between rest and notes or beam.")
311      (minimum-distances ,list? "list of rods (ie. (OBJ . DIST) pairs).")
312      (minimum-X-extent ,number-pair? "minimum size in X dimension, measured in staff space.")
313      (minimum-Y-extent ,number-pair? "see @code{minimum-Y-extent}.")
314      (minimum-length ,ly:dimension? "try to make the
315 Grob at least this long.
316
317 Also works as a scaling parameter for the length of hyphen. .")
318      (minimum-space ,ly:dimension? "minimum distance that the victim should move (after padding).")
319      (print-function ,procedure? "Function taking grob as argument,
320 returning a Molecule object.")
321
322      (molecule ,ly:molecule? "Cached output of the print-function.")
323
324      (new-accidentals ,list? "list of (pitch, accidental) pairs.")
325      (no-spacing-rods ,boolean? "read from grobs: boolean that makes Separation_item ignore this item (MOVE ME TO ITEM).")
326      (no-stem-extend ,boolean? "should stem not be extended to middle staff ,line?.")
327      (non-default ,boolean? "not set because of existence of a ,bar?.")
328      (note-head-style ,string? "name of the font character to be used as note heads in the ambitus grob.")
329      (old-accidentals ,list? "list of (pitch, accidental) pairs.")
330      (oriscus ,boolean? "is this neume an ,oriscus?.")
331
332      (enclose-bounds ,number?
333                      "How much of the bound a spanner  should enclose: +1 = completely, 0 = center, -1 not at all.")
334
335      (padding ,ly:dimension? "add this much extra space between objects that are next to each other.")
336      (penalty ,number? "Penalty for breaking at
337 this column. 10000 or more means forbid linebreak, -10000 or less
338 means force linebreak.  Other values influence linebreaking decisions
339 as a real penalty.")
340
341      (pes-or-flexa ,boolean? "shall this neume be joined with the previous ,head?.")
342
343      (pitch-max ,ly:pitch? "FIXME, JUNKME")
344      (pitch-min ,ly:pitch? "FIXME, JUNKME")
345      
346      (quilisma ,boolean? "is this neume a ,quilisma?.")
347      (positions ,pair?
348
349                 "cons of staff coordinates (@var{left} . @var{right}),
350 where both @var{left} and @var{right} are in the staff-space unit of
351 the current staff.")
352
353      ;; DOCME
354      (prefix-set ,number? "")
355      (ratio ,number? "Parameter for slur shape. The higher this number, the
356 quicker the slur attains it @code{height-limit}.")
357      (remove-first ,boolean?
358                    "Remove the first staff of a orchestral score?")
359      (right-padding ,ly:dimension? "space right of accs.")
360      (right-position ,number? "position of right part of spanner.")
361      (script-priority ,number? "A sorting key that determines in what order a script is within a stack of scripts.")
362
363      ;; TODO: revise typing
364      (self-alignment-X ,number-or-grob? "real number: -1 =
365 left aligned, 0 = center, 1 right-aligned in X direction.
366
367  Set to an grob pointer, if you want that grob to be the center.
368 In this case, the center grob should have this object as a
369 reference point.
370
371 .")
372      (self-alignment-Y ,number? "like self-alignment-X but for Y axis.")
373
374      ;; DOCME
375      (shorten ,ly:dimension? "the amount of space that a stem should be shortened ")
376      (shorten-pair ,number-pair? "the length on each side to shorten a text-spanner, for example a pedal bracket")
377      (common-shortest-duration ,ly:moment?
378                                "The most common shortest note length.
379 This is used in spacing. Making this larger will make the score tighter.")
380      (shortest-duration-space ,ly:dimension? "Start
381 with this much space for the shortest duration. This is explessed in @code{spacing-increment} as unit. See also
382 @internalsref{spacing-spanner-interface}.")
383      (shortest-playing-duration ,ly:moment? "duration of the shortest playing in that column.")
384      (shortest-starter-duration ,ly:moment? "duration of the shortest notes that starts exactly in this column.")
385      (side-relative-direction ,ly:dir? "if set: get the direction from a different object, and multiply by this.")
386      (slope ,number? "some kind of slope")
387      (slope-limit ,number? "set slope to zero if slope is running away steeper than this.")
388
389      (space-alist ,list? "Alist of break align
390 spacing tuples: format = (SYMBOL . (TYPE . DISTANCE)), where TYPE can be
391 minimum-space or extra-space.")
392      (space-function ,procedure? "return interbeam space given Beam grob and multiplicity.")
393
394      (spacing-increment ,number? "Add this much space for a doubled
395 duration. Typically, the width of a note head. See also
396 @internalsref{spacing-spanner-interface}.")
397
398      (spacing-procedure ,procedure? "procedure taking grob as
399 argument. This is called after before-line-breaking-callback, but
400 before the actual line breaking itself.  Return value is ignored.")
401      
402      (stacking-dir ,ly:dir? "stack contents of grobs in which direction ?.")
403      (staff-space ,ly:dimension? "Amount of line leading relative to global staffspace.")
404      (staff-position ,number? "vertical position in staff spaces, counted from the middle line.")
405
406      (staffline-clearance ,ly:dimension? "don't get closer than this to stafflines.")
407
408      (stem-attachment-function ,procedure? "Where
409 does the stem attach to the ,notehead? Function takes grob and axis as
410 arguments. It returns a (X . Y) pair, specifying location in terms of
411 note head bounding box.")
412
413      (stem-end-position ,number? "Where does the stem end (the end is opposite to the support-head.")
414
415      (stem-shorten ,list? "shorten stems in forced directions given flag multiplicity:
416 the Nth element of the list gives the amount stem shortening of a note with N flags.
417 ")
418      ;;[TODO: doco]
419      (stem-spacing-correction ,number? "optical correction amount.   ")
420      (stropha ,boolean? "is this neume a ,stropha?.")
421      (style ,symbol? "a string determining what style of  glyph is typeset. Valid choices depend on the function that is reading this property. .")
422      (text-repeat-if-broken ,boolean?
423                             "Repeat text on broken ,text-spanner?")
424      (text ,markup? "Text markup.  See the
425 notation manual for more information.")
426      (thick-thickness ,number? "thickness, measured in linethickness.")
427      (thickness ,number? "thickness, measured in linethickness.")
428      (thin-kern ,number? "space after a hair-line.")
429      (forced-distance ,ly:dimension? "forced distance for an alignment.")
430
431      (threshold ,number-pair? "(cons MIN MAX), where MIN and MAX are dimensions in staffspace.")
432      (transparent ,boolean? "This is almost the
433 same as setting print-function to #f, but this retains the
434 dimensions of this grob, which means that you can erase grobs
435 individually. .")
436      (bracket-visibility ,boolean-or-symbol? " This controls the
437 visibility of the tuplet bracket.  Setting it to false will prevent
438 printing of the bracket. Setting the property to #'if-no-beam will
439 make it print only if there is no beam associated with this tuplet
440 bracket.")
441      
442      (number-visibility ,boolean-or-symbol? " Like
443 @code{bracket-visibility}, but for the number.")
444
445      ;; FIXME.
446      (break-visibility ,procedure? "a function that takes the break
447 direction and returns a cons of booleans containing (TRANSPARENT
448 . EMPTY).  The following variables are predefined: @code{all-visible},
449 @code{begin-of-line-visible}, @code{end-of-line-visible},
450 @code{begin-of-line-invisible}, @code{end-of-line-invisible},
451 @code{all-invisible}.
452 ")
453
454      (virga ,boolean? "is this neume a ,virga?.")
455      (when ,ly:moment? "when does this column ,happen?.")
456      (word-space ,ly:dimension? "space to insert between lyrics or
457 words in texts.")
458      (width ,ly:dimension? "width of a grob measured in staff space.")
459      (x-gap ,ly:dimension? "horizontal gap between notehead and tie.")
460      (x-offset ,ly:dimension? "extra horizontal offset for ligature heads.")
461      (y-free ,ly:dimension? "minimal vertical gap between slur and noteheads or stems.")
462      (y-offset ,ly:dimension? "extra vertical offset
463 for ties away from the center line.")
464      (zigzag-length ,ly:dimension? "The length of the
465 lines of a zigzag - relative to zigzag-width. a value of 1
466 gives 60-degree zigzags.")
467      (zigzag-width ,ly:dimension? "the width of one
468 zigzag-squiggle, measured in staff space. The width will be adjusted
469 so that the line can be constructed from a whole number of squiggles.")
470
471
472      (avoid-note-head ,boolean? "if set, the stem of a chord does not pass through all note head, but start at the last note head. Used by tablature.")
473      (staff-padding ,ly:dimension?
474                     "Maintain this much space between reference points
475 and the staff.  Its effect is to align objects of differing sizes (like the dynamic @b{p} and @b{f})  on their baselines.")
476      (use-breve-rest ,boolean? "boolean that tells multi-measure-rest
477 to use a breve rest to represent the duration of 1 measure instead of
478 whole rest.  It defaults to false.  It is set to true when the
479 duration of a measure is a breve or longer.")
480
481      )))
482
483
484 ;;;;;;;;;;;;;;;;
485 ;;   INTERNAL
486
487
488 (define (define-internal-grob-property symbol type? description)
489   (define-grob-property symbol type? description)
490   (set-object-property! symbol 'backend-internal #t)
491   symbol
492   )
493
494
495 (define-public all-internal-grob-properties
496   (map
497    (lambda (x)
498      (apply define-internal-grob-property x))
499    
500    `(
501      (accidental-grobs ,list? "Alis with (NOTENAME . GROBLIST) entries")
502      
503      (all-elements ,grob-list? "list of all grobs in this line. Needed for protecting grobs from GC.")
504      (arpeggio ,ly:grob? "pointer to arpeggio object.") 
505      (beam ,ly:grob? "pointer to the beam, if applicable.")
506      (center-element ,ly:grob? "grob which will be at the center of
507 the group after aligning (when using
508 Align_interface::center_on_element).")
509      (direction-source ,ly:grob? "in case side-relative-direction is
510 set, which grob to get the direction from .")
511      (dot ,ly:grob? "reference to Dots object.")
512      (pedal-text ,ly:grob? "Pointer to the text of a mixed-style piano pedal.")
513      (stem ,ly:grob? "pointer to Stem object.")
514      (tremolo-flag ,ly:grob? "The tremolo object on a stem.")
515      (tie ,ly:grob? "")
516      (staff-symbol ,ly:grob? "the staff symbol grob that we're in.")
517      (rest ,ly:grob? "the staff symbol grob that we're in.")
518      (rest-collision ,ly:grob? "rest collision that a rest is in.")
519      (accidental-grob ,ly:grob? "Accidental for this note.")
520      (bars ,grob-list? "list of barline pointers.")
521      (bounded-by-me ,grob-list? "list of spanners that have this
522 column as start/begin point. Only columns that have grobs or act as bounds are spaced.")
523      (columns ,grob-list? "list of grobs, typically containing paper-columns.")
524      (conditional-elements ,grob-list? "Internal use only")
525      (dependencies ,grob-list? "list of score-grob pointers that indicate who to compute first for certain global passes.")
526      (elements ,grob-list? "list of grobs, type depending on the Grob where this is set in.")
527      (heads ,grob-list? "List of note heads.")
528      (items-worth-living ,grob-list? "list of interesting items. If empty in a particular system, clear that system.")
529      (note-heads ,grob-list? "List of note head grobs")
530      (side-support-elements ,grob-list? "the support, a list of grobs.")
531      (spacing-wishes ,grob-list? "List of note spacing or staff spacing objects.")
532      (stems ,grob-list? "list of stem objects, corresponding to the notes that the arpeggio has to be before.")
533
534
535      (left-neighbors ,grob-list? " List of
536 spacing-wish grobs that are close to the current column.
537
538 The closest spacing-wishes determine the actual distances between the
539 columns.
540 ")
541      (right-neighbors ,grob-list? "see left-neighbors")
542      (left-items ,grob-list? "")
543      (right-items ,grob-list? "")
544      (cause ,scheme? "Any kind of causation objects (i.e. music, or perhaps translator) that was the cause for this grob.  ")
545      (font ,ly:font-metric? "Cached font metric object")
546
547      (positioning-done ,boolean?
548                        "Used to signal that a positioning element
549 did it's job. This ensures that a positioning is only done once.")
550
551
552      (script-molecule ,pair? "Index code for script -- internal, see script.cc.")
553
554
555      (flag-count ,number? "")
556
557      ;; TODO: use interface for this!
558      (chord-tremolo ,boolean? "if set, this beam is a tremolo. ")
559      (begin-of-line-visible ,boolean? "Used for marking ChordNames that should only show changes.")
560      (head-pair ,pair? "Pair of grob pointers, pointing to the two heads of the tie.")
561      (quant-score ,number? "Beam quanting score -- can be stored for
562 debugging")
563      (least-squares-dy ,number? 
564                        "ideal beam slope, without damping.")
565      (ligature-primitive-callback ,procedure? "callback that brews ligature head.")
566      (stem-info ,pair? "caching of stem parameters")
567      (note-columns ,pair? "list of NoteColumn grobs.")
568
569      (if-text-padding ,number? "padding in case texts are there.")
570      (grace-space-factor ,number? "space grace at this fraction of the increment.")
571      (position-callbacks ,list? "list of
572 functions set spanner positions.")
573
574 ;;; Junk me, replace it by add-join.
575      (join-left ,boolean? "is this ligature head joined with the previous one by a vertical ,line?")
576
577      (join-left-amount ,number? "")
578
579      (delta-pitch ,number? "the interval between this and the next note, or, more precisely, their vertical distance; this is used in ligatures for calculation of the height of vertical joins flexa shapes")
580      (head-width ,ly:dimension? "width of this ligature head")
581
582      ;; [TODO: change this]
583      (primitive ,integer? "Pointer to a ligature primitive, i.e. an item similar to a note head that is part of a ligature. ")
584      
585      )))
586
587 (define-public all-backend-properties
588   (append
589    all-internal-grob-properties
590    all-user-grob-properties))
591