]> git.donarmstrong.com Git - lilypond.git/blob - input/test/blank-notes.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[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 You can suppress printing of LilyPond output.  This example shows you how to
11 print invisible (or blank) notes.  This can be very useful when you want to
12 do wierd tricks with LilyPond (especially with slurs, since you can't attach
13 a slur to a rest or spacer rest).
14 " }
15
16 blanknotes = { \override NoteHead  #'transparent = ##t
17                \override Stem  #'transparent = ##t }
18 unblanknotes = { \revert NoteHead #'transparent
19                  \revert Stem #'transparent }
20
21
22 \score {
23     \notes \relative c'' { c4 d4 
24     \blanknotes e4 f4   \unblanknotes
25              g4 a 
26              }
27 \paper{raggedright = ##t}
28 }
29
30