[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inserting a few bars with a 3-staff PianoStaff into a normal 2-staff
From: |
Kieren MacMillan |
Subject: |
Re: Inserting a few bars with a 3-staff PianoStaff into a normal 2-staff PianoStaff |
Date: |
Wed, 16 Oct 2019 14:58:22 -0400 |
Hi Robert,
> 16 bars in normal 2-staff PianoStaff on 4 systems. Then follow 4 bars in
> 3-staff PianoStaff on one system, followed by 12 bars in in normal 2-staff
> PianoStaff on three systems.
How about this?
%%% SNIPPET BEGINS
\version "2.19.83"
showMMRs = {
\set Staff.keepAliveInterfaces =
#'( rhythmic-grob-interface
multi-measure-rest-interface
lyric-interface
stanza-number-interface
percent-repeat-interface)
}
letStaffVanish = \set Staff.keepAliveInterfaces = #'()
breaks = {
\repeat unfold 4 { \repeat unfold 4 { s1 \noBreak } \break }
\repeat unfold 4 { s1 \noBreak } \break
\repeat unfold 3 { \repeat unfold 4 { s1 \noBreak } \break }
}
thirdStaffMusic = {
\clef bass
R1*16
\showMMRs c1 1 1 1
\letStaffVanish
R1*12
}
\layout {
\context {
\PianoStaff
\remove "Keep_alive_together_engraver"
\RemoveAllEmptyStaves
}
}
\score {
\new PianoStaff <<
\new Staff << \repeat unfold 32 { c'4 4 4 4 } \breaks >>
\new Staff << \repeat unfold 32 { c'4 4 4 4 } >>
\new Staff \thirdStaffMusic
>>
}
%%% SNIPPET ENDS
Hope that helps!
Kieren.
________________________________
Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: address@hidden