4 texidoc = "A second staff can be aligned to a fragment (say, a
5 cadenza) from the first staff, using a Scheme function: the
6 function creates a skip of the same length as the cadenza. "
12 cadenza = \relative c' {
13 c4 d8 << { e f g } \\ { d4. } >>
18 #(define (skip-of-length mus)
19 "Create a skip of exactle the same length as MUS."
24 'duration (ly:make-duration 0 0))))
26 (make-event-chord (list (ly:music-compress skip (ly:music-length mus))))
30 #(define (mmrest-of-length mus)
31 "Create a mmrest of exactly the same length as MUS."
35 (make-multi-measure-rest
36 (ly:make-duration 0 0) '() )))
37 (ly:music-compress skip (ly:music-length mus))
44 \relative c' \new GrandStaff <<
45 \new Staff { \cadenza c4 \bar "|." }
47 #(ly:export (mmrest-of-length cadenza))