Dear Keith,
Many thanks for the solution you provided...
Never in a month of Sundays would I have found that!

However, there's no such thing as a free lunch - further difficulties have manifested themselves.

I have made some comments in the attached file which should show where there are problems - mainly dealing with staff-names and whether they appear or not.

Could I ask you to consider these for me?

Regards
Bill
\version "2.13.36"

\header {
title = "Extra Staves #2" 
%opus = "opus"
%piece = "piece"
% subtitle = " " 
tagline = " "
	}
	
stemOn = { \revert Staff.Stem #'transparent }
stemOff = { \override Staff.Stem #'transparent = ##t }	

global =
{
\key g \major
\override Staff.TimeSignature #'style = #'()
 }

\score {  
 \new StaffGroup <<
      % Must be lower than the actual number of staff lines
  \override StaffGroup.SystemStartBracket #'collapse-height = #1
  \override Score.SystemStartBar #'collapse-height = #1

\new Staff 
\with {   \remove Time_signature_engraver }
\relative c'
 {
 	 
\override Staff.BarLine #'transparent = ##t
\stemOff
\key g \major
\time 4/4

  g'4 g2 s g4 s a s b s a s a2 s
\override Staff.BarLine #'transparent = ##f
\bar "||" 
 }
 \addlyrics
 {
 	 A B C D E F G
 }
 >>
\layout {
ragged-right = ##t
indent = 10
  }
 }

\score {  
 \new StaffGroup 
 <<
      % Must be lower than the actual number of staff lines
  \override StaffGroup.SystemStartBracket #'collapse-height = #1
  \override Score.SystemStartBar #'collapse-height = #1

\new Staff 

\with {   \remove Time_signature_engraver }
\relative c'
 {
 	 \set Staff.instrumentName = #"Or   "

\override Staff.BarLine #'transparent = ##t
\stemOff
\key g \major
\time 4/4
 g'4 g s g g s s g s g s g s a s b s a2 s
\override Staff.BarLine #'transparent = ##f
\bar "||" 
 }
 \addlyrics
 {
 	H I J K L M N O P Q
 }
 >>
\layout {
ragged-right = ##t 
indent = 10
  }
 }


 
\score {  
 \new StaffGroup <<
      % Must be lower than the actual number of staff lines
  \override StaffGroup.SystemStartBracket #'collapse-height = #1
  \override Score.SystemStartBar #'collapse-height = #1

\new Staff 
\with {   \remove Time_signature_engraver }
\relative c'
 {
 	 \set Staff.instrumentName = #"Or   "
\override Staff.BarLine #'transparent = ##t
\stemOff
\key g \major
\time 4/4
g'4 g s g2 s g4 s g s g s g s g s g2 s a4 s b s a2 s
\override Staff.BarLine #'transparent = ##f
\bar "||" 
 }
 \addlyrics
 {
 	 R S T U V W X Y Z A B C
 }
 >>
\layout {
ragged-right = ##t 
indent = 10
  }
 }

 
AllT = 
\relative c'
{
\time 2/4
g'2 g4  g g2
\bar "||" 
 }
 Twords = \lyricmode
 { F G H J }
 
 sopranoT = 
 \relative c'
 {
d'2 d4 d4 d2
 }
 altoT = 
 \relative c'
 {
 b2 b4 b4 b2	 
 }
 tenorT =
 
 \relative c
 {
 \clef bass
 d'2 d4 d4 d2	
 }
 bassT =
 \relative c
 {
 g'2 g4 g4 g2
 }
\score {  
 \new StaffGroup <<
      % Must be lower than the actual number of staff lines %*********************
  \override StaffGroup.SystemStartBracket #'collapse-height = #4 %**************************
  \override Score.SystemStartBar #'collapse-height = #4 %**************************

\new Staff 
\with {   \remove Time_signature_engraver }
\relative c'
 {
\set Staff.instrumentName = #"Or "
%%%%%%%% 'This' "Or" disappears!! with the use of the code below to achieve the 'extra-staves'
%%%%%%%% but if the *-ed lines above are deleted the "Or' reappears! but the brackets go...

\override Staff.BarLine #'transparent = ##t
\stemOff
\key g \major
\time 4/4
  g'2  g4(  g)  g2 
\override Staff.BarLine #'transparent = ##f
\bar "||" 

<<
 \once\override Score.BreakAlignment #'break-align-orders =
      #(make-vector 3  '( staff-bar span-bar  clef key-signature time-signature instrument-name) )
      
 \new Voice = "sopranos" {   << \stemOn   \AllT >> }
 \new Lyrics \lyricsto sopranos \Twords
 
\new PianoStaff 
%\new StaffGroup
  <<
  \once\override GrandStaff.SystemStartBrace #'X-offset = #0
  \new Staff
  
  <<
  \new Voice = sopranos { << \voiceOne \global \sopranoT >> }
  \new Lyrics = sopranos { s1 }
  \new Voice = alto { << \voiceTwo \global \altoT >> }
  	  >>
 \new Staff  
 << 
 \new Voice = tenor { <<  \voiceOne \global \tenorT >> }
 \new Voice =bass { <<  \voiceTwo \global \bassT >> }
  	  >>
  	
  	  \context Lyrics = sopranos \lyricsto sopranos \Twords
 >>
 
 >>
 }
 \addlyrics
 { A S D }
 >>
 
 
\layout {
\context { \PianoStaff \accepts "Lyrics" }
ragged-right = ##f
indent = 10
  }
 }
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to