Workaround for broken MusicXML files (percussion clef in MuseScore)
[lilypond.git] / input / manual / note-head-style.ly
blob98d33a27f57ed55baf522bfa96cbda15697a100d
1 \version "2.12.0"
2 \header{
3 texidoc="
4 Note head shapes may be set from several choices.
5 The stem endings should be adjusted according to the note head.
6 If you want different note head styles on one stem,
7 you must create a special context.
9 Harmonic notes have a different shape and different
10 dimensions.
14 \layout {
15 indent = 0.0
16 ragged-right = ##t
19 pattern = <<
20 \new Voice {
21 \override Stem #'direction = #UP
22 e'4 e'2. e'1 e'\breve*1/2 e'\longa*1/4
24 \new Voice {
25 \override Stem #'direction = #DOWN
26 a4 a2. a1 a\breve*1/2 a\longa*1/4
31 \transpose c c {
32 \clef C
34 \override Staff.NoteHead #'style = #'default
35 s1*0^\markup { "default" }
36 \pattern
38 \override Staff.NoteHead #'style = #'baroque
39 s1*0^\markup { "baroque" }
40 \pattern
42 \break
44 \override Staff.NoteHead #'style = #'neomensural
45 s1*0^\markup { "neomensural" }
46 \pattern
48 \override Staff.NoteHead #'style = #'mensural
49 s1*0^\markup { "mensural" }
50 \pattern
52 \break
54 \override Staff.NoteHead #'style = #'petrucci
55 s1*0^\markup { "petrucci" }
56 \pattern
58 \override Staff.NoteHead #'style = #'harmonic
59 s1*0^\markup { "harmonic" }
60 \pattern
62 \break
64 \override Staff.NoteHead #'style = #'harmonic-black
65 s1*0^\markup { "harmonic-black" }
66 \pattern
68 \override Staff.NoteHead #'style = #'harmonic-mixed
69 s1*0^\markup { "harmonic-mixed" }
70 \pattern
72 \break
74 \override Staff.NoteHead #'style = #'diamond
75 s1*0^\markup { "diamond" }
76 \pattern
78 \override Staff.NoteHead #'style = #'cross
79 s1*0^\markup { "cross" }
80 \pattern
82 \break
84 \override Staff.NoteHead #'style = #'xcircle
85 s1*0^\markup { "xcircle" }
86 \pattern
88 \override Staff.NoteHead #'style = #'triangle
89 s1*0^\markup { "triangle" }
90 \pattern
92 \break
94 \override Staff.NoteHead #'style = #'slash
95 s1*0^\markup { "slash" }
96 \pattern