]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/accidental-voice.ly
*** empty log message ***
[lilypond.git] / input / regression / accidental-voice.ly
1 \version "2.6.0"
2
3 \header{
4   texidoc="
5 This shows how modern cross voice auto cautionary accidentals are handled.
6 The first two fisses get accidentals because they belong to different voices.
7 The first f gets cautionary natural because of previous measure.
8 The last f gets cautionary natural because fis was only in the other voice.
9 "
10 }
11
12
13
14 voicea =  \transpose c c' {
15   \stemUp
16   fis2 a2 f4 fis a2
17 }
18 voiceb =  \transpose c c' {
19   \stemDown
20   c2 fis2  f4 c   f2
21 }
22
23 <<
24   
25   \new NoteNames {
26     \set printOctaveNames = ##f
27     \voicea
28   }
29   \context Staff << 
30     #(set-accidental-style 'modern-voice-cautionary)
31     \new Voice \voicea
32     \new Voice \voiceb
33   >>
34   \new NoteNames {
35     \set printOctaveNames = ##f
36     \voiceb
37
38   }
39 >>
40   \layout { raggedright = ##t }