]> git.donarmstrong.com Git - lilypond.git/blob - input/test/blank-notes.ly
89cb23b0c1bfd108148ffe456ff99a13103ce7d7
[lilypond.git] / input / test / blank-notes.ly
1
2 \version "2.1.26"
3 % possible rename to invis-notes.ly
4 % check if other documents call this "blank notes", though.  I think
5 % invisible notes sounds better, but whatever it is, it should be
6 % consistent.
7 \header {
8     texidoc = "@cindex Invisible Notes
9 @cindex Blank Notes
10 Invisible (or transparent) can be useful, when wierd tricks are needed; 
11 especially, a slur cannot be attach to a rest or spacer rest.
12 " }
13
14 blanknotes = { \override NoteHead  #'transparent = ##t
15                \override Stem  #'transparent = ##t }
16 unblanknotes = { \revert NoteHead #'transparent
17                  \revert Stem #'transparent }
18
19
20 \score {
21     \notes \relative c'' { c4 d4 
22     \blanknotes e4 f4   \unblanknotes
23              g4 a 
24              }
25 \paper{raggedright = ##t}
26 }
27
28