]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/note-head-style.ly
* Documentation/user/refman.itely (Automatic note splitting):
[lilypond.git] / input / regression / note-head-style.ly
1 \version "2.1.19"
2 \header{
3 texidoc="
4 Note head shapes are settable.  The stem endings should be adjusted
5 per note head.  If you want different note head styles on one stem,
6 you must create a special context called Voice.
7
8 Harmonic notes have a different shape and different
9 dimensions. 
10 "
11 }
12
13 pattern = \notes <<
14       \new Voice {
15         \property Voice.Stem \set #'direction = #UP
16         e'4
17          e'2. e'1 e'\breve*1/2 e'\longa*1/4
18       }
19       \new Voice {
20         \property Voice.Stem \set #'direction = #DOWN
21          a4 a2. a1 a\breve*1/2 a\longa*1/4
22       }
23     >>
24
25 \score {
26   \notes \transpose c c {
27     \clef C
28
29     \property Staff.NoteHead \set #'style = #'default
30     s1*0^\markup { "default" }
31     \pattern
32
33     \property Staff.NoteHead \set #'style = #'baroque
34     s1*0^\markup { "baroque" }
35     \pattern
36         \break
37
38     \property Staff.NoteHead \set #'style = #'neo_mensural
39     s1*0^\markup { "neomensural" }
40     \pattern
41
42     \property Staff.NoteHead \set #'style = #'mensural
43     s1*0^\markup { "mensural" }
44     \pattern
45     
46     \break
47
48     \property Staff.NoteHead \set #'style = #'harmonic
49     s1*0^\markup { "harmonic" }
50     \pattern
51
52     \property Staff.NoteHead \set #'style = #'diamond
53     s1*0^\markup { "diamond" }
54     \pattern
55     \break
56
57     \property Staff.NoteHead \set #'style = #'cross
58     s1*0^\markup { "cross" }
59     \pattern
60
61     \property Staff.NoteHead \set #'style = #'xcircle
62     s1*0^\markup { "xcircle" }
63 \pattern
64     
65     \break
66
67     \property Staff.NoteHead \set #'style = #'triangle
68     s1*0^\markup { "triangle" }
69     \pattern
70     
71
72     \property Staff.NoteHead \set #'style = #'slash
73     s1*0^\markup { "slash" }
74     \pattern
75     \break
76   }
77
78   \paper {
79     indent = 0.0
80     raggedright = ##t
81   }
82 }