]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/using-autochange-with-more-than-one-voice.ly
Merge branch 'stable/2.16' into staging
[lilypond.git] / Documentation / snippets / using-autochange-with-more-than-one-voice.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "keyboards, pitches, staff-notation"
11
12   texidoc = "
13 Using @code{autochange} with more than one voice.
14
15 "
16   doctitle = "Using autochange with more than one voice"
17 } % begin verbatim
18
19 \score
20 {
21   \new PianoStaff
22   <<
23     \new Staff = "up" {
24       <<
25         \set Timing.beamExceptions = #'()
26         \set Timing.beatStructure = #'(4)
27         \new Voice {
28           \voiceOne
29           \autochange
30           \relative c' {
31             g8 a b c d e f g
32             g,8 a b c d e f g
33           }
34         }
35
36         \new Voice {
37           \voiceTwo
38           \autochange
39           \relative c' {
40             g8 a b c d e f g
41             g,,8 a b c d e f g
42           }
43         }
44       >>
45     }
46
47     \new Staff = "down" {
48       \clef bass
49     }
50   >>
51 }