Hi Helge,

Maybe this helps?

Best,
Kieren.
________________________

\version "2.18.0"

showMultiRests = { 
 \set Staff.keepAliveInterfaces = 
 #'( rhythmic-grob-interface 
 multi-measure-rest-interface 
 lyric-interface 
 stanza-number-interface 
 percent-repeat-interface) 
}

hideMultiRests = \unset Staff.keepAliveInterfaces

rhythm = \relative c' {
 \time 2/2  s1*10
 \mark\default
 \time 3/4  s2.*5
 \mark\default
 \time 2/2  s1*18
 \mark\default
 \time 3/4  s1*20
}

triange = \relative c' {
 \compressFullBarRests
 \repeat unfold 4 { a4 r r2 }
 \repeat unfold 6 { R1 }
 \showMultiRests
 \repeat unfold 5 { R2. }
 \hideMultiRests
 \repeat unfold 18 { R1 }
 \repeat unfold 20 { R2. }
}

drum = \relative c' {
 \compressFullBarRests
 \repeat unfold 4 { R1 }
 \repeat unfold 6 { R1 }
 \repeat unfold 5 { R2. }
 \repeat unfold 18 { R1 }
 \repeat unfold 20 { c4 r c }
}

\score {
 \new StaffGroup <<
   \new Staff \rhythm
   \new RhythmicStaff \with { shortInstrumentName = "tr-le" } \triange
   \new RhythmicStaff \with { shortInstrumentName = "cassa" } \drum
 >>
}
\layout {
 \context { \Staff \RemoveEmptyStaves }
 \context { \RhythmicStaff \RemoveEmptyStaves }
}

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to