The example
\score {
\new RhythmicStaff {
R1 |
\pageBreak
1~ |
8 r r4 r2 |
}
}
led to unexpected results since \pageBreak produces an EventChord which
is then taken as a repeat note by 1~. This patch makes sure that
repeated durations only attach to event chords containing rhythmic
events.
m)
(cond
((music-is-of-type? m 'event-chord)
m)
(cond
((music-is-of-type? m 'event-chord)
+ (if (any (lambda (m) (music-is-of-type? m 'rhythmic-event))
+ (ly:music-property m 'elements))
+ (set! last-pitch m))
+ m)
((music-is-of-type? m 'note-event)
(cond
((or (ly:music-property m 'pitch #f)
((music-is-of-type? m 'note-event)
(cond
((or (ly:music-property m 'pitch #f)