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