#(define (Bar_check_warning_egraver context) (make-engraver (acknowledgers ((rhythmic-head-interface engraver grob source-engraver) (let* ((evt (ly:grob-property grob 'cause)) (loc (ly:event-property evt 'origin)) (loc (format #f "~a" loc)) (loc (string-copy loc 11 (1- (string-length loc)))) (dur (ly:event-property evt 'duration)) (dur-as-mom (ly:duration-length dur)) (current-mlen (ly:context-property context 'measureLength)) (current-mpos (ly:context-property context 'measurePosition)) (rest-len (ly:moment-sub current-mlen current-mpos)) (timing (ly:context-property context 'timing #t))) (if (and (= 0 (ly:moment-grace current-mpos)) timing) ; We do not care about grace notes or cadenzas (if (ly:moment2 } { \cadenzaOn c'\breve %{ should not issue a warning %} }