lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove Empty Stave but not all


From: Kieren MacMillan
Subject: Re: Remove Empty Stave but not all
Date: Sun, 23 Feb 2014 15:10:56 -0500

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 }
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]