2 grace-fixup.hh -- declare Grace_fixup
4 source file of the GNU LilyPond music typesetter
6 (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
10 #ifndef GRACE_FIXUP_HH
11 #define GRACE_FIXUP_HH
17 This is a lookahead list for grace notes.
19 { ... X \grace Y Z ... }
21 normally, the ending of X is the start of Z. In case of a grace
22 note, we take off a little at the end of X. What is stored: START
23 (start point of X), LENGTH (length of X), GRACE_START (start_music
24 of Y), and the next fixup element.
26 This is also done for nested musics, i.e.
28 voiceA = \notes { \grace b16 c'2 }
29 voiceB = \notes { c'2 \voiceA }
31 the iterator for voiceB will contain a fixup entry with (START = 0/1,
32 LENGTH =2/1, GRACE_START =(0G-1/16) )
34 Graces at the start of a sequential music iterator are handled
35 by initting here_mom_ with Music::start_music (); no fixups are needed.
43 Rational grace_start_;
48 #endif /* GRACE_FIXUP_HH */