]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/note-head-style.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[lilypond.git] / input / regression / note-head-style.ly
1 \version "2.1.26"
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.
8
9 Harmonic notes have a different shape and different
10 dimensions. 
11 "
12 }
13
14 pattern = \notes <<
15       \new Voice {
16         \override Stem  #'direction = #UP
17         e'4
18          e'2. e'1 e'\breve*1/2 e'\longa*1/4
19       }
20       \new Voice {
21         \override Stem  #'direction = #DOWN
22          a4 a2. a1 a\breve*1/2 a\longa*1/4
23       }
24     >>
25
26 \score {
27   \notes \transpose c c {
28     \clef C
29
30     \override Staff.NoteHead  #'style = #'default
31     s1*0^\markup { "default" }
32     \pattern
33
34     \override Staff.NoteHead  #'style = #'baroque
35     s1*0^\markup { "baroque" }
36     \pattern
37         \break
38
39     \override Staff.NoteHead  #'style = #'neo_mensural
40     s1*0^\markup { "neomensural" }
41     \pattern
42
43     \override Staff.NoteHead  #'style = #'mensural
44     s1*0^\markup { "mensural" }
45     \pattern
46     
47     \break
48
49     \override Staff.NoteHead  #'style = #'harmonic
50     s1*0^\markup { "harmonic" }
51     \pattern
52
53     \override Staff.NoteHead  #'style = #'diamond
54     s1*0^\markup { "diamond" }
55     \pattern
56     \break
57
58     \override Staff.NoteHead  #'style = #'cross
59     s1*0^\markup { "cross" }
60     \pattern
61
62     \override Staff.NoteHead  #'style = #'xcircle
63     s1*0^\markup { "xcircle" }
64 \pattern
65     
66     \break
67
68     \override Staff.NoteHead  #'style = #'triangle
69     s1*0^\markup { "triangle" }
70     \pattern
71     
72
73     \override Staff.NoteHead  #'style = #'slash
74     s1*0^\markup { "slash" }
75     \pattern
76     \break
77   }
78
79   \paper {
80     indent = 0.0
81     raggedright = ##t
82   }
83 }