]> git.donarmstrong.com Git - lilypond.git/blob - input/test/extra-staff.ly
Added texinfo index tags.
[lilypond.git] / input / test / extra-staff.ly
1 \version "1.7.18"
2 % definately wil be renamed to something.
3 %{
4 (Message vers:9)
5 To: Adrian Mariano <<adrian@camcornelledu>>.
6 cc: gnu-music-discuss@gnu.org
7 Subject: Re: Switching from one staff to two staves 
8 Reply-To: janneke@gnu.org
9 In-reply-to: Your message of "Tue, 19 Jan 1999 12:27:10 EST."
10              <<199901191727.MAA29757@avalanchecamcornelledu>>. 
11 Date: Wed, 20 Jan 1999 09:39:22 +0100
12 From: Jan Nieuwenhuizen <<jan@beavis-nt>>
13
14 On Tuesday, 19 January 1999, Adrian Mariano writes:
15
16 > I want to typeset something which starts out with just one staff and then
17 > harmony comes in and there are two staves.  I can't figure out how to do
18 > this.  I get an extra blank staff during the second section (using
19 > Lily 1.1.15):
20
21 There used to be an example called 'multi.ly'...
22 Try this (we'll include it in pl23/24):
23
24 extra-staff.ly:
25 %}
26
27 \header{ texidoc="@cindex Staff Extra
28 @cindex Staff Ossia
29 You can add an extra staff after the beginning of a piece. "}
30
31 \score {
32         <
33                 \context Staff=i \notes\relative c''{ c1 c c c c }
34                 \context StaffGroup=ii \notes\relative c''{ 
35                         \context Staff=ii
36                         c1 c
37                         < \context Staff=ii { c1 } \context Staff=iii { c1 } >
38                         c
39                 }
40         >
41         \paper {
42                 raggedright = ##t
43                 \translator{
44                         \ScoreContext
45
46                 }
47         }
48 }
49
50
51
52 %% new-chords-done %%