]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/grace-fixup.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / grace-fixup.hh
1 /*
2   grace-fixup.hh -- declare Grace_fixup
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef GRACE_FIXUP_HH
10 #define GRACE_FIXUP_HH
11
12 #include "moment.hh"
13
14 /*
15   This is a lookahead list for grace notes.
16
17   {  ... X \grace Y  Z ... }
18
19   normally, the ending of X is the start of Z. In case of a grace
20   note, we take off a little at the end of X. What is stored: START
21   (start point of X), LENGTH (length of X), GRACE_START (start_music
22   of Y), and the next fixup element.
23
24   This is also done for nested musics, i.e.
25
26   voiceA = \notes { \grace b16 c'2 }
27   voiceB = \notes { c'2 \voiceA }
28
29   the iterator for voiceB will contain a fixup entry with (START = 0/1,
30   LENGTH =2/1, GRACE_START =(0G-1/16) )
31
32   Graces at the start of a sequential music iterator are handled
33   by initting here_mom_ with Music::start_music (); no fixups are needed.
34 */
35 struct Grace_fixup
36 {
37   Moment start_;
38   Moment length_;
39
40   Rational grace_start_;
41
42   Grace_fixup *next_;
43 };
44
45 #endif /* GRACE_FIXUP_HH */
46