]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-grob-interfaces.scm
Run grand-replace (issue 3765)
[lilypond.git] / scm / define-grob-interfaces.scm
1 ;;;; This file is part of LilyPond, the GNU music typesetter.
2 ;;;;
3 ;;;; Copyright (C) 1998--2014  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    thin-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  '())
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  'only-prebreak-interface
221  "Kill this grob after the line breaking process."
222  '())
223
224 (ly:add-interface
225  'outside-staff-axis-group-interface
226  "A vertical axis group on which outside-staff skyline calculations are done."
227  '(outside-staff-placement-directive vertical-skyline-elements))
228
229 (ly:add-interface
230  'outside-staff-interface
231  "A grob that could be placed outside staff."
232  '(outside-staff-horizontal-padding outside-staff-padding outside-staff-priority))
233
234 (ly:add-interface
235  'parentheses-interface
236  "Parentheses for other objects."
237  '(padding
238    stencils))
239
240 (ly:add-interface
241  'percent-repeat-interface
242  "Beat, Double and single measure repeats."
243  '(dot-negative-kern
244    slash-negative-kern
245    slope
246    thickness))
247
248 (ly:add-interface
249  'piano-pedal-interface
250  "A piano pedal sign."
251  '())
252
253 (ly:add-interface
254  'piano-pedal-script-interface
255  "A piano pedal sign, fixed size."
256  '())
257
258 (ly:add-interface
259  'pitched-trill-interface
260  "A note head to indicate trill pitches."
261  '(accidental-grob))
262
263 (ly:add-interface
264  'rhythmic-grob-interface
265  "Any object with a duration.  Used to determine which grobs are
266 interesting enough to maintain a hara-kiri staff."
267  '())
268
269 (ly:add-interface
270  'spacing-options-interface
271  "Supports setting of spacing variables."
272  '(spacing-increment
273    shortest-duration-space))
274
275 (ly:add-interface
276  'span-bar-interface
277  "A bar line that is spanned between other barlines.
278   This interface is used for bar lines that connect different
279   staves."
280  '(glyph-name
281    elements
282    pure-Y-common
283    pure-relevant-grobs
284    pure-relevant-items
285    pure-relevant-spanners))
286
287 (ly:add-interface
288  'stanza-number-interface
289  "A stanza number, to be put in from of a lyrics line."
290  '())
291
292 (ly:add-interface
293  'string-number-interface
294  "A string number instruction."
295  '())
296
297 (ly:add-interface
298  'stroke-finger-interface
299  "A right hand finger instruction."
300  '(digit-names))
301
302 (ly:add-interface
303  'system-start-text-interface
304  "Text in front of the system."
305  '(long-text
306    self-alignment-X
307    self-alignment-Y
308    text))
309
310 (ly:add-interface
311  'tab-note-head-interface
312  "A note head in tablature."
313  '(details display-cautionary span-start))
314
315 (ly:add-interface
316  'trill-spanner-interface
317  "A trill spanner."
318  '())
319
320 (ly:add-interface
321  'trill-pitch-accidental-interface
322  "An accidental for trill pitch."
323  '())
324
325 (ly:add-interface
326  'unbreakable-spanner-interface
327  "A spanner that should not be broken across line breaks.  Override
328 with @code{breakable=##t}."
329  '(breakable))
330
331 (ly:add-interface
332  'volta-interface
333  "A volta repeat."
334  '())