X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fnote-performer.cc;h=ff296311ffead109a8de2936f8542a3170b8aa0d;hb=bcfda82911036559d8fb5681efb9ba2efeddeb3d;hp=6bfc82211b73724e7104fa121558bfb903b06776;hpb=af770f3440264c18ce01525dce1aa76b86ace0d5;p=lilypond.git diff --git a/lily/note-performer.cc b/lily/note-performer.cc index 6bfc82211b..ff296311ff 100644 --- a/lily/note-performer.cc +++ b/lily/note-performer.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1996--2006 Jan Nieuwenhuizen + (c) 1996--2007 Jan Nieuwenhuizen */ #include "performer.hh" @@ -65,7 +65,14 @@ Note_performer::process_music () tie_event = ev; } - Audio_note *p = new Audio_note (*pitp, get_event_length (n), + Moment len = get_event_length (n); + if (now_mom().grace_part_) + { + len.grace_part_ = len.main_part_; + len.main_part_ = Rational (0); + } + + Audio_note *p = new Audio_note (*pitp, len, tie_event, transposing.negated ()); Audio_element_info info (p, n); announce_element (info);