From 6dbb7c4cfab2a0c2ce47f229592efc0ffc7d519a Mon Sep 17 00:00:00 2001 From: Keith OHara Date: Sat, 2 May 2015 22:49:54 -0700 Subject: [PATCH] repeat tremolo: robust to zero-duration elements --- scm/music-functions.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scm/music-functions.scm b/scm/music-functions.scm index 611879ae8b..65f885bbf8 100644 --- a/scm/music-functions.scm +++ b/scm/music-functions.scm @@ -285,8 +285,9 @@ depth-first through MUSIC." (body (ly:music-property tremolo 'element)) (children (if (music-is-of-type? body 'sequential-music) ;; \repeat tremolo n { ... } - (length (extract-named-music body '(EventChord - NoteEvent))) + (count duration-of-note ; do not count empty <> + (extract-named-music body + '(EventChord NoteEvent))) ;; \repeat tremolo n c4 1)) (tremolo-type (if (positive? children) -- 2.39.5