X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgrob-pq-engraver.cc;h=31584e46b40be7249cfd7bd747cece150e631edd;hb=85b83630668459fb322aa7eedf8536e24656a17c;hp=476cae950ca61cece500a96b27fd0f510742ca77;hpb=f9214bac21e9926dc3248416f58190c98c4167a9;p=lilypond.git diff --git a/lily/grob-pq-engraver.cc b/lily/grob-pq-engraver.cc index 476cae950c..31584e46b4 100644 --- a/lily/grob-pq-engraver.cc +++ b/lily/grob-pq-engraver.cc @@ -47,9 +47,10 @@ Grob_pq_engraver::initialize () context ()->set_property ("busyGrobs", SCM_EOL); } -LY_DEFINE (ly_grob_pq_less_p, "ly:grob-pq-less?", +LY_DEFINE (ly_grob_pq_less_p, "ly:grob-pqinternal_has_interface (ly_symbol2scm ("multi-measure-interface"))) { Moment n = now_mom (); - Moment l = get_event_length (ev); + Moment l = get_event_length (ev, n); if (!l.to_bool ()) return; - if (n.grace_part_) - { - l.grace_part_ = l.main_part_; - l.main_part_ = 0; - } - Moment end = n + l; Grob_pq_entry e; @@ -143,8 +138,16 @@ Grob_pq_engraver::start_translation_timestep () #include "translator.icc" ADD_ACKNOWLEDGER (Grob_pq_engraver, grob); ADD_TRANSLATOR (Grob_pq_engraver, + /* doc */ + "Administrate when certain grobs (e.g., note heads) stop" + " playing.", + + /* create */ + "", + + /* read */ + "busyGrobs ", - /* doc */ "Administrate when certain grobs (eg. note heads) stop playing", - /* create */ "", - /* read */ "busyGrobs", - /* write */ "busyGrobs"); + /* write */ + "busyGrobs " + );