]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grob-interfaces.scm
Run grand replace for 2015.
[lilypond.git] / scm / define-grob-interfaces.scm
1 ;;;; This file is part of LilyPond, the GNU music typesetter.
2 ;;;;
3 ;;;; Copyright (C) 1998--2015  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 ;; The interfaces defined here generally have no code (e.g.,
21 ;; dynamic-interface), or have callbacks defined entirely in
22 ;; scheme.  Others interfaces are defined in lily/*.cc with the
23 ;; ADD_INTERFACE function.
24
25 ;; should include default value?
26
27
28 (ly:add-interface
29  'accidental-suggestion-interface
30  "An accidental, printed as a suggestion (typically: vertically over a
31 note)."
32  '())
33
34 (ly:add-interface
35  'ambitus-interface
36  "The line between note heads for a pitch range."
37  '(gap
38    length-fraction
39    maximum-gap
40    note-heads
41    thickness))
42
43 (ly:add-interface
44  'bar-line-interface
45  "Print a special bar symbol.  It replaces the regular bar
46 symbol with a special symbol.  The argument @var{bartype}
47 is a string which specifies the kind of bar line to print.
48
49 The list of allowed glyphs and predefined bar lines can be
50 found in @file{scm/bar-line.scm}.
51
52 @code{gap} is used for the gaps in dashed bar lines."
53  '(allow-span-bar
54    bar-extent
55    gap
56    glyph
57    glyph-name
58    hair-thickness
59    has-span-bar
60    kern
61    rounded
62    segno-kern
63    thick-thickness))
64
65 (ly:add-interface
66  'bass-figure-interface
67  "A bass figure text."
68  '(implicit))
69
70 (ly:add-interface
71  'bass-figure-alignment-interface
72  "Align a bass figure."
73  '())
74
75 (ly:add-interface
76  'bend-after-interface
77  "A doit or drop."
78  '(delta-position
79    thickness))
80
81 (ly:add-interface
82  'clef-modifier-interface
83  "The number describing transposition of the clef, placed below
84 or above clef sign. Usually this is 8 (octave transposition)
85 or 15 (two octaves), but LilyPond allows any integer here."
86  '(clef-alignments))
87
88 (ly:add-interface
89  'dynamic-interface
90  "Any kind of loudness sign."
91  '())
92
93 (ly:add-interface
94  'dynamic-line-spanner-interface
95  "Dynamic line spanner."
96  '(avoid-slur))
97
98 (ly:add-interface
99  'dynamic-text-interface
100  "An absolute text dynamic."
101  '(right-padding))
102
103 (ly:add-interface
104  'dynamic-text-spanner-interface
105  "Dynamic text spanner."
106  '(text))
107
108 (ly:add-interface
109  'episema-interface
110  "An episema line."
111  '())
112
113 (ly:add-interface
114  'finger-interface
115  "A fingering instruction."
116  '())
117
118 (ly:add-interface
119  'footnote-interface
120  "Make a footnote."
121  '(automatically-numbered
122    footnote
123    footnote-text
124    numbering-assertion-function))
125
126 (ly:add-interface
127  'footnote-spanner-interface
128  "Make a footnote spanner."
129  '(footnote-text
130    spanner-placement))
131
132 (ly:add-interface
133  'fret-diagram-interface
134  "A fret diagram"
135  '(align-dir
136    dot-placement-list
137    fret-diagram-details
138    size
139    thickness))
140
141 (ly:add-interface
142  'glissando-interface
143  "A glissando."
144  '(glissando-index))
145
146 (ly:add-interface
147  'grace-spacing-interface
148  "Keep track of durations in a run of grace notes."
149  '(columns
150    common-shortest-duration))
151
152 (ly:add-interface
153  'inline-accidental-interface
154  "An inlined accidental (i.e. normal accidentals, cautionary
155 accidentals)."
156  '())
157
158 (ly:add-interface
159  'instrument-specific-markup-interface
160  "Instrument-specific markup (like fret boards or harp pedal diagrams)."
161  '(fret-diagram-details graphical harp-pedal-details size thickness))
162
163 (ly:add-interface
164  'key-cancellation-interface
165  "A key cancellation."
166  '())
167
168 (ly:add-interface
169  'ligature-head-interface
170  "A note head that can become part of a ligature."
171  '())
172
173 (ly:add-interface
174  'ligature-bracket-interface
175  "A bracket indicating a ligature in the original edition."
176  '(width thickness height))
177
178 (ly:add-interface
179  'ligature-interface
180  "A ligature."
181  '())
182
183 (ly:add-interface
184  'lyric-interface
185  "Any object that is related to lyrics."
186  '())
187
188 (ly:add-interface
189  'lyric-syllable-interface
190  "A single piece of lyrics."
191  '())
192
193 (ly:add-interface
194  'mark-interface
195  "A rehearsal mark."
196  '())
197
198 (ly:add-interface
199  'measure-counter-interface
200  "A counter for numbering measures."
201  '(columns
202    count-from))
203
204 (ly:add-interface
205  'metronome-mark-interface
206  "A metronome mark."
207  '())
208
209 (ly:add-interface
210  'multi-measure-interface
211  "Multi measure rest, and the text or number that is printed over it."
212  '(bound-padding))
213
214 (ly:add-interface
215  'note-name-interface
216  "Note names."
217  '())
218
219 (ly:add-interface
220  'number-interface
221  "Numbers."
222  '(number-type))
223
224 (ly:add-interface
225  'only-prebreak-interface
226  "Kill this grob after the line breaking process."
227  '())
228
229 (ly:add-interface
230  'outside-staff-axis-group-interface
231  "A vertical axis group on which outside-staff skyline calculations are done."
232  '(outside-staff-placement-directive vertical-skyline-elements))
233
234 (ly:add-interface
235  'outside-staff-interface
236  "A grob that could be placed outside staff."
237  '(outside-staff-horizontal-padding outside-staff-padding outside-staff-priority))
238
239 (ly:add-interface
240  'parentheses-interface
241  "Parentheses for other objects."
242  '(padding
243    stencils))
244
245 (ly:add-interface
246  'percent-repeat-interface
247  "Beat, Double and single measure repeats."
248  '(dot-negative-kern
249    slash-negative-kern
250    slope
251    thickness))
252
253 (ly:add-interface
254  'piano-pedal-interface
255  "A piano pedal sign."
256  '())
257
258 (ly:add-interface
259  'piano-pedal-script-interface
260  "A piano pedal sign, fixed size."
261  '())
262
263 (ly:add-interface
264  'pitched-trill-interface
265  "A note head to indicate trill pitches."
266  '(accidental-grob))
267
268 (ly:add-interface
269  'rhythmic-grob-interface
270  "Any object with a duration.  Used to determine which grobs are
271 interesting enough to maintain a hara-kiri staff."
272  '())
273
274 (ly:add-interface
275  'spacing-options-interface
276  "Supports setting of spacing variables."
277  '(spacing-increment
278    shortest-duration-space))
279
280 (ly:add-interface
281  'span-bar-interface
282  "A bar line that is spanned between other barlines.
283   This interface is used for bar lines that connect different
284   staves."
285  '(glyph-name
286    elements
287    pure-Y-common
288    pure-relevant-grobs
289    pure-relevant-items
290    pure-relevant-spanners))
291
292 (ly:add-interface
293  'stanza-number-interface
294  "A stanza number, to be put in from of a lyrics line."
295  '())
296
297 (ly:add-interface
298  'string-number-interface
299  "A string number instruction."
300  '())
301
302 (ly:add-interface
303  'stroke-finger-interface
304  "A right hand finger instruction."
305  '(digit-names))
306
307 (ly:add-interface
308  'system-start-text-interface
309  "Text in front of the system."
310  '(long-text
311    self-alignment-X
312    self-alignment-Y
313    text))
314
315 (ly:add-interface
316  'tab-note-head-interface
317  "A note head in tablature."
318  '(details display-cautionary span-start))
319
320 (ly:add-interface
321  'time-signature-interface
322  "A time signature, in different styles.  The following values for @code{style} are are recognized:
323
324  @table @code
325  @item C
326  4/4 and 2/2 are typeset as C and struck C, respectively. All other time signatures are written with two digits. The value @code{default} is equivalent to @code{C}.
327  @item neomensural
328  2/2, 3/2, 2/4, 3/4, 4/4, 6/4, 9/4, 4/8, 6/8, and 9/8 are typeset with neo-mensural style mensuration marks.  All other time signatures are written with two digits.
329  @item mensural
330  2/2, 3/2, 2/4, 3/4, 4/4, 6/4, 9/4, 4/8, 6/8, and 9/8 are typeset with mensural style mensuration marks.  All other time signatures are written with two digits.
331  @item single-digit
332  All time signatures are typeset with a single digit, e.g., 3/2 is written as 3.
333  @item numbered
334  All time signatures are typeset with two digits.
335  @end table"
336  '(fraction style))
337
338 (ly:add-interface
339  'trill-spanner-interface
340  "A trill spanner."
341  '())
342
343 (ly:add-interface
344  'trill-pitch-accidental-interface
345  "An accidental for trill pitch."
346  '())
347
348 (ly:add-interface
349  'unbreakable-spanner-interface
350  "A spanner that should not be broken across line breaks.  Override
351 with @code{breakable=##t}."
352  '(breakable))
353
354 (ly:add-interface
355  'volta-interface
356  "A volta repeat."
357  '())