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