]> git.donarmstrong.com Git - lilypond.git/blob - scm/define-music-properties.scm
* lily/include/event.hh: remove file.
[lilypond.git] / scm / define-music-properties.scm
1 ;;;; music-property-description.scm -- part of generated backend documentation
2 ;;;;
3 ;;;;  source file of the GNU LilyPond music typesetter
4 ;;;; 
5 ;;;; (c) 1998--2005  Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;;;                 Jan Nieuwenhuizen <janneke@gnu.org>
7
8 (define (music-property-description symbol type? description)
9   (if (not (equal? #f (object-property symbol 'music-doc)))
10       (ly:error (_ "symbol ~S redefined") symbol))
11   (set-object-property! symbol 'music-type? type?)
12   (set-object-property! symbol 'music-doc description)
13   symbol)
14
15 (define-public all-music-properties
16   (map
17    (lambda (x) (apply music-property-description x))
18    `(
19      (iterator-ctor ,procedure? "Function to construct music-event-iterator object for this Music")
20      (duration ,ly:duration? "Duration of this note/lyric.")
21      (metronome-count ,number? "How many beats in a minute?")
22      (span-type ,string? "What kind of spanner should be created?
23
24 TODO: consider making type into symbol") 
25      (absolute-octave ,integer?
26                       "The absolute octave for a octave check note.")
27      (articulations ,ly:music-list?
28                     "Articulation events specifically for this note.")
29      (articulation-type ,string? "key for script definitions alist.
30
31 TODO: consider making type into symbol ")
32      (associated-context ,string? "Name of the Voice context associated with this \\newaddlyrics section")
33      (bass ,boolean? "Set if this note is a bass note in a chord")
34      (cautionary ,boolean? "If set, this alteration needs cautionary accidental")
35      (change-to-id ,string? "name of the context to change to ")
36      (change-to-type ,symbol? "type of the context to change to.")
37      (compress-procedure ,procedure? "compress this music expression. Argument 1: the music, arg 2: factor")
38      (context-id ,string? "name of context")
39      (context-type ,symbol?  "type of context")
40      (descend-only ,boolean? "If set, this @code{\\context} will only
41 descend in the context tree.")
42      (denominator ,integer? "denominator in a time signature")
43      (digit ,integer? "digit for fingering")
44      (direction ,ly:dir? "Print this up or down?")
45      (drum-type ,symbol? "Which percussion instrument to play this note on.")
46      (error-found ,boolean? "If true, a parsing error was found in this expression")
47      (element ,ly:music? "The single child of a Music_wrapper music object, or the body of a repeat.")
48      (elements ,ly:music-list? "A list of elements for sequential of simultaneous music, or the alternatives of repeated music. ")
49      (force-accidental ,boolean? "If set, a cautionary accidental should always be printed on this note")
50      (grob-property ,symbol? "The symbol of the grob property to set. ")
51      (grob-value ,scheme? "The value of the grob property to set")
52      (input-tag ,scheme? "Arbitrary marker to relate input and output")
53      (inversion ,boolean? "If set, this chord note is inverted.")
54      (label ,markup? "label of a mark.")
55      (last-pitch ,ly:pitch? "The last pitch after relativization.")
56      (length ,ly:moment? "The duration of this music")
57      (length-callback ,procedure? "How to compute the duration of this music. This property
58 can only be defined as initializer in @file{define-music-types.scm}.")
59      (name ,symbol? "Name of this music object")
60      (numerator ,integer? "numerator of a time signature")
61      (once ,boolean? "Apply this operation only during one time step?")
62      (octavation ,integer?
63                  "This pitch was octavated by how many octaves?
64 For chord inversions, this is negative.")
65      (origin ,ly:input-location? "where was this piece of music defined?")
66      (page-penalty ,number? "Penalty for page break hint.")
67      (penalty ,number? "Penalty for line break hint.")
68      (pitch ,ly:pitch? "the pitch of this note")
69      (pitch-alist ,list? "list of pitches jointly forming the scale of a key signature")
70      (pop-first ,boolean? "Do a revert before we try to do a override on some grob property.")
71      (procedure ,procedure?
72                 "The function to run with \\applycontext.
73 It must take a single argument, being the context.")
74      (property-operations ,list?
75                           "Do these operations for instantiating the context.")
76      (predicate ,procedure? "the predicate of a \\outputproperty.")
77      (quoted-events ,vector? "A vector of with moment/event-list entries.")
78      (quoted-music-name ,string? "The name of the voice to quote.")
79      (quoted-voice-direction ,ly:dir? "Should the quoted voice be up-stem or down-stem?")
80      (quoted-context-type ,symbol? "The name of the context to direct quotes to, eg., @code{Voice}.")
81      (quoted-context-id ,string? "The id of the context to direct quotes to, eg., @code{cue}.")
82      (to-relative-callback ,procedure? "How to transform a piece of music to relative pitches")
83      (repeat-count  ,integer? "do a @code{\repeat} how ofen?")
84      (span-direction ,ly:dir? "Does this start or stop a spanner?")
85      (split-list ,list? "splitting moments for part combiner.")
86      (start-callback ,procedure? "Function to compute the negative
87 length of starting grace notes.  This property can only be defined as
88 initializer in @file{define-music-types.scm}.")
89      (string-number ,integer? "The number of the string in a StringNumberEvent")
90      (symbol ,symbol? "Grob name to perform an override/revert on.")
91      (tags ,list? "List of symbols that for denoting extra details,
92 e.g. @code{\\tag #'part ...} could tag a piece of music as only being active in a part.")
93      (text-type ,symbol? "Particular type of text script (e.g. finger, dynamic).")
94      
95      (text ,markup? "markup expression to be printed")
96      (tempo-unit ,ly:duration? "The unit for the metronome count.")
97      (tonic ,ly:pitch? "Base of the scale")
98      (tremolo-type ,integer? "")
99      (trill-pitch ,ly:pitch? "Pitch of other note of the trill.")
100      (type ,symbol? "The type of this music object. Determines iteration in some cases.")
101      (types ,list? "The types of this music object; determines by what
102 engraver this music expression is processed.")
103      (value ,scheme? "Assignment value for a
104 translation property")
105      (what ,symbol? "What to change for auto-change. FIXME, naming")
106      (part-combine-status ,symbol?
107                           "Change to what kind of state? Options are
108 solo1, solo2 and unisono")
109
110      (figure ,markup? "a `figure' (which may be
111 a string) for figured bass")
112      (alteration ,number? "alteration for figured bass")
113      (bracket-start ,boolean? "start a bracket
114 here. TODO: use SpanEvents?")
115      (bracket-stop ,boolean? "stop a bracket here.")
116      (untransposable ,boolean? "If set, this music is not transposed.")
117      )))