]> git.donarmstrong.com Git - lilypond.git/blob - input/test/ac-extra-voice.ly
* scripts/convert-ly.py (FatalConversionError.subst_in_trans):
[lilypond.git] / input / test / ac-extra-voice.ly
1 \version "2.1.23"
2
3 %% I don't know what this example is supposed to do.  delete it?
4 %% It shows how to use the autochange feature together with an extra
5 %% voice.  When I needed to typeset this example, I found it not trivial
6 %% and dumped a piece of it here.  Move to refman?
7
8 \header{
9     texidoc="When using automatic staff changes for the one voice, the
10 other voice must be given a name explicitely."
11 }
12
13 global = \notes{
14     \key a \minor
15     \time 6/4
16 }
17
18 melody = \notes\relative c''{
19     r2 r r 
20     r2 r r
21     r4 a'8-- \< a-- a-- a-- c-- b\!-- a-\> gis f e\!
22     es8 \grace b c r4 r2 r
23 }
24
25 basloopje = \notes\relative c{
26     d,8( a' d f a d f d a f d a)
27 }
28
29 accompany = \repeat unfold 4  \basloopje
30
31 \score{
32     \notes \context PianoStaff<<
33         \context Staff=up <<
34             \global
35             \context Voice=foo{
36                 \voiceOne
37                 \melody 
38             }
39         >>
40         \context Staff=down<<
41             \global
42             \clef bass
43             \autochange  \context Voice \accompany
44         >>
45     >>
46
47     \paper {
48         \translator{ 
49             \StaffContext
50             \override autoBeamSettings #'(end * * * *)
51          = #(ly:make-moment 1 2)
52         }
53     }
54     \midi {
55         \tempo 4 = 54
56     }
57 }
58
59