lilypond-user
[Top][All Lists]
Advanced

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

Re: Nested StaffGroups


From: Ruud van Silfhout
Subject: Re: Nested StaffGroups
Date: Thu, 18 Nov 2004 20:37:27 +0100

Hi Aaron,

In the user manual  is a section on orchestral scores. 
Using that I made the following example.  Can this be of any help to you?

\version "2.2.2"
global = \notes { \time 4/4 \key c \major }

\score {
<<
 \new GrandStaff <<
    \new Staff \notes \relative c' { \global c1 c }
    \new Staff \notes \relative c' { \global c c }
  >>
  \new StaffGroup <<
    \new Staff \notes \relative c' { c1 c }
    \new Staff \notes \relative c' { c c }
  >>
  \new Staff \notes \relative c' { \global c1 c }
  \new Staff \notes \relative c' { \global c c }
>>
}

Bye,
Ruud
Regards,
Ruud van Silfhout
----- Original Message ----- 
From: "Aaron Dalton" <address@hidden>
To: <address@hidden>
Sent: Thursday, November 18, 2004 7:45 PM
Subject: Nested StaffGroups


> I am running Lilypond 2.2.5 via cygwin on an XP box.  I have access to 
> 2.2.3 on my FreeBSD box but I get the same results.
> 
> I am trying to duplicate a section of a Baroque opera score.  I is a 
> single system with 5 staves.  The top 3 are Violin1, Violin2, and Viola. 
>    This is followed by a staff for the voice and a staff for the 
> continuo.  All 5 staves should be connected at the beginning with a 
> single line.  The top three staves should be braced, and the the top *2* 
> staves should be further grouped with a bracket.  I have included my 
> current .ly file for examination.  I believe I have correctly followed 
> the example in section 3.3.8 of the documentation.  When I compile this 
> document, I get all 5 staves grouped together with a single brace and 
> all the barlines shared.
> 
> On a side note, I am very new to Lilypond syntax in general.  There 
> *has* to be a way to declare time and key signature for all staves in 
> one place.  If I put it after the \score delcaration I get a syntax 
> error and if I put it after the \notes declaration it only affects the 
> first staff.
> 
> I *greatly* appreciate any help you can offer.
> 
> Cheers!
> Aaron
> 
> -----
> 
> \score {
> \notes {
> \context StaffGroup << % groups all 5 staves
> \context StaffGroup << % groups the top 3 staves
> \context StaffGroup << % further groups the top 2 staves
> \new Staff {
> \clef treble
> \time 4/4
> \key a \major
> {s1 | s1}
> }
> \new Staff {
> \clef treble
> \time 4/4
> \key a \major
> {s1 | s1}
> }
> >> % end top 2 staves
> \new Staff {
> \clef alto
> \time 4/4
> \key a \major
> {s1 | s1}
> }
> >> % end top 3 staves
> \new Staff {
> \clef treble
> \time 4/4
> \key a \major
> {s1 | s1}
> } % new staff ungrouped as per documentation section 3.3.8
> \context StaffGroup <<
> \new Staff {
> \clef bass
> \time 4/4
> \key a \major
> {s1 | s1}
> }
> >> % end continuo
> >> % end 5-staff group
> }
> }
> 
> 
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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