]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/included/note-head-style.ly
[notation reference] PDF layout fixes and other minor improvements.
[lilypond.git] / Documentation / included / note-head-style.ly
1 \version "2.14.0"
2
3 \header {
4   texidoc="
5 Note head shapes may be set from several choices.
6 The stem endings should be adjusted according to the note head.
7 If you want different note head styles on one stem,
8 you must create a special context.
9
10 Harmonic notes have a different shape and different
11 dimensions.
12 "
13 }
14
15 \layout {
16   indent = 0.0
17   ragged-right = ##t
18
19   \context {
20     \Score
21     \remove "Bar_number_engraver"
22   }
23 }
24
25 pattern = <<
26   \new Voice {
27     \override Stem #'direction = #UP
28     e'4 e'2. e'1 e'\breve*1/2 e'\longa*1/4 \bar "||"
29   }
30   \new Voice {
31     \override Stem #'direction = #DOWN
32     a4 a2. a1 a\breve*1/2 a\longa*1/4 \bar "||"
33   }
34 >>
35
36
37 \transpose c c {
38   \clef C
39
40   \override Staff.NoteHead  #'style = #'default
41   s1*0^\markup { "default" }
42   \pattern
43
44   \override Staff.NoteHead  #'style = #'altdefault
45   s1*0^\markup { "altdefault" }
46   \pattern
47
48   \break
49
50   \override Staff.NoteHead  #'style = #'baroque
51   s1*0^\markup { "baroque" }
52   \pattern
53
54   \override Staff.NoteHead  #'style = #'neomensural
55   s1*0^\markup { "neomensural" }
56   \pattern
57
58   \break
59
60   \override Staff.NoteHead  #'style = #'mensural
61   s1*0^\markup { "mensural" }
62   \pattern
63
64   \override Staff.NoteHead  #'style = #'petrucci
65   s1*0^\markup { "petrucci" }
66   \pattern
67
68   \break
69
70   \override Staff.NoteHead  #'style = #'harmonic
71   s1*0^\markup { "harmonic" }
72   \pattern
73
74   \override Staff.NoteHead  #'style = #'harmonic-black
75   s1*0^\markup { "harmonic-black" }
76   \pattern
77
78   \break
79
80   \override Staff.NoteHead  #'style = #'harmonic-mixed
81   s1*0^\markup { "harmonic-mixed" }
82   \pattern
83
84   \override Staff.NoteHead  #'style = #'diamond
85   s1*0^\markup { "diamond" }
86   \pattern
87
88   \break
89
90   \override Staff.NoteHead  #'style = #'cross
91   s1*0^\markup { "cross" }
92   \pattern
93
94   \override Staff.NoteHead  #'style = #'xcircle
95   s1*0^\markup { "xcircle" }
96   \pattern
97
98   \break
99
100   \override Staff.NoteHead  #'style = #'triangle
101   s1*0^\markup { "triangle" }
102   \pattern
103
104   \override Staff.NoteHead  #'style = #'slash
105   s1*0^\markup { "slash" }
106   \pattern
107 }