]> git.donarmstrong.com Git - lilypond.git/blob - input/test/partial-blank.ly
* input/test/partial-blank.ly (quickmeasure): syntax
[lilypond.git] / input / test / partial-blank.ly
1 \version "1.7.18"
2 % check with invisible-notes or blank-notes.  possible rename. -gp
3 \header{ texidoc = "@cindex Partial Blank
4 When entering half music (i.e. for students to complete by hand)
5 you need the spacing to correspond to the timing -- all measures
6 same length, etc.  This thing implements it by adding invisible
7 staff with lots of fast notes. "
8 }
9
10 quickmeasure = \notes {
11     \repeat unfold 16 c''16
12 }
13
14 mel = \notes \relative c' {c16 d16 e8 a4 g2 e8 d c2. g'1 e4 d c2}
15
16 \score {
17 \context PianoStaff \notes <
18   \context Staff = v <
19     \clef G
20     \context Voice=melo {\mel}
21     \context Voice=invisible {
22         \property Voice.NoteHead \override #'transparent = ##t
23         \property Voice.Stem \override #'transparent = ##t
24         \property Voice.Beam \override #'transparent = ##t
25         \repeat unfold 4 \quickmeasure
26     }
27   >
28   \context Staff = empty \notes {\clef F s1*4}
29 >
30 \paper {}
31 }
32