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