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