X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fgrace-fixup.hh;h=f9df29f47a0cdc2a1b96f555ebd8fed23c1e655e;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=180fc4f2c2e591f7f8572396861e12152c04a50c;hpb=e24df7c27635dc996c466295eacf2981bddccaf7;p=lilypond.git diff --git a/lily/include/grace-fixup.hh b/lily/include/grace-fixup.hh index 180fc4f2c2..f9df29f47a 100644 --- a/lily/include/grace-fixup.hh +++ b/lily/include/grace-fixup.hh @@ -1,10 +1,9 @@ -/* - grace-fixup.hh -- declare Grace_fixup - - source file of the GNU LilyPond music typesetter +/* + grace-fixup.hh -- declare Grace_fixup - (c) 2004--2005 Han-Wen Nienhuys + source file of the GNU LilyPond music typesetter + (c) 2004--2008 Han-Wen Nienhuys */ #ifndef GRACE_FIXUP_HH @@ -13,15 +12,14 @@ #include "moment.hh" /* - This is a lookahead list for grace notes. - { ... X \grace Y Z ... } + { ... X \grace Y Z ... } - normally, the ending of X is the start of Z. In case of a grace - note, we take off a little at the end of X. What is stored: START - (start point of X), LENGTH (length of X), GRACE_START (start_music - of Y), and the next fixup element. + normally, the ending of X is the start of Z. In case of a grace + note, we take off a little at the end of X. What is stored: START + (start point of X), LENGTH (length of X), GRACE_START (start_music + of Y), and the next fixup element. This is also done for nested musics, i.e. @@ -29,20 +27,19 @@ voiceB = \notes { c'2 \voiceA } the iterator for voiceB will contain a fixup entry with (START = 0/1, - LENGTH =2/1, GRACE_START =(0G-1/16) ) - + LENGTH =2/1, GRACE_START =(0G-1/16) ) + Graces at the start of a sequential music iterator are handled by initting here_mom_ with Music::start_music (); no fixups are needed. - */ -struct Grace_fixup +struct Grace_fixup { Moment start_; Moment length_; Rational grace_start_; - Grace_fixup * next_; + Grace_fixup *next_; }; #endif /* GRACE_FIXUP_HH */