]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/note-head-style.ly
*** empty log message ***
[lilypond.git] / input / regression / note-head-style.ly
index 12cbed9146049cd4a28fe0907c3e9ee352124b60..c8050737441daaf67627728d4d88ca5a0f96fe3a 100644 (file)
@@ -1,69 +1,83 @@
-\version "1.7.16"
+\version "2.2.0"
 \header{
 texidoc="
-Note head shapes are settable.  The stem endings should be adjusted
-per note head.  If you want different note head styles on one stem,
-you must create a special context called Thread.
+Note head shapes may be set from several choices.  
+The stem endings should be adjusted according to the note head.  
+If you want different note head styles on one stem,
+you must create a special context.
 
 Harmonic notes have a different shape and different
-dimensions. Nevertheless, noteheads in both styles can be combined, on
-either up or down stems.
+dimensions. 
 "
 }
 
-\score { \notes \relative c'{ \clef C
-% \property Voice.Stem \override #'thickness = #5.0
-\property Voice.NoteHead \set #'style = #'default
-c4 c2 c8  c16 c16 c1 c\breve b4 b2 b8  b16 b16 b1 b\breve \break
-\property Voice.NoteHead \set #'style = #'diamond
-c4 c2 c8  c16 c16 c1 c\breve b4 b2 b8  b16 b16 b1 b\breve \break
-\property Voice.NoteHead \set #'style = #'transparent
-c4 c2 c8  c16 c16 c1 c\breve b4 b2 b8  b16 b16 b1 b\breve \break
-\property Voice.NoteHead \set #'style = #'cross
-c4 c2 c8  c16 c16 c1 c\breve b4 b2 b8  b16 b16 b1 b\breve \break
-\property Voice.NoteHead \set #'style = #'xcircle
-c4 c2 c8  c16 c16 c1 c\breve b4 b2 b8  b16 b16 b1 b\breve \break
-\property Voice.NoteHead \set #'style = #'triangle
-c4 c2 c8  c16 c16 c1 c\breve b4 b2 b8  b16 b16 b1 b\breve \break
-\property Voice.NoteHead \set #'style = #'slash
-c4 c2 c8  c16 c16 c1 c\breve b4 b2 b8  b16 b16 b1 b\breve \break
-\property Voice.NoteHead \set #'style = #'mensural
-c4 c2 c8  c16 c16  c1 c\breve c\longa b4 b2 b8  b16 b16 b1 b\breve b\longa \break
-\property Voice.NoteHead \set #'style = #'harmonic
-c4 c2 c8  c16 c16 c1 c\breve b4 b2 b8  b16 b16 b1 b\breve \break
-\property Voice.NoteHead \set #'style = #'baroque
-c4 c2 c8  c16 c16  c1 c\breve c\longa b4 b2 b8  b16 b16 b1 b\breve b\longa \break
+pattern = \notes <<
+      \new Voice {
+        \override Stem  #'direction = #UP
+        e'4
+         e'2. e'1 e'\breve*1/2 e'\longa*1/4
+      }
+      \new Voice {
+        \override Stem  #'direction = #DOWN
+         a4 a2. a1 a\breve*1/2 a\longa*1/4
+      }
+    >>
 
+\score {
+  \notes \transpose c c {
+    \clef C
 
-   \context Voice = another <
-    \context Thread = TA
-      {
-        \property Thread.NoteHead \set #'style = #'cross
-        \property Voice.Stem \set #'direction = #1
-        c16
-       }
-    \context Thread = TB
-      { \property Thread.NoteHead \set #'style = #'default a16  }
+    \override Staff.NoteHead  #'style = #'default
+    s1*0^\markup { "default" }
+    \pattern
 
-    \context Thread = TC
-      { \property Thread.NoteHead \set #'style = #'mensural d16 }
+    \override Staff.NoteHead  #'style = #'baroque
+    s1*0^\markup { "baroque" }
+    \pattern
+        \break
 
-  >
+    \override Staff.NoteHead  #'style = #'neo_mensural
+    s1*0^\markup { "neomensural" }
+    \pattern
 
+    \override Staff.NoteHead  #'style = #'mensural
+    s1*0^\markup { "mensural" }
+    \pattern
+    
+    \break
 
-   \context Voice <
-     \context Thread = TA {
-       \property Thread.NoteHead \set #'style = #'cross
-       c4 c4 c4 c4 }
-     \context Thread = TB {
-       \property Thread.NoteHead \set #'style = #'mensural
-       c'4 \stemDown c
-       \property Thread.NoteHead \set #'style = #'slash
-       \stemUp c4 \stemDown c
-} >
+    \override Staff.NoteHead  #'style = #'harmonic
+    s1*0^\markup { "harmonic" }
+    \pattern
 
-}
+    \override Staff.NoteHead  #'style = #'diamond
+    s1*0^\markup { "diamond" }
+    \pattern
+    \break
+
+    \override Staff.NoteHead  #'style = #'cross
+    s1*0^\markup { "cross" }
+    \pattern
+
+    \override Staff.NoteHead  #'style = #'xcircle
+    s1*0^\markup { "xcircle" }
+\pattern
+    
+    \break
+
+    \override Staff.NoteHead  #'style = #'triangle
+    s1*0^\markup { "triangle" }
+    \pattern
+    
+
+    \override Staff.NoteHead  #'style = #'slash
+    s1*0^\markup { "slash" }
+    \pattern
+    \break
+  }
 
-    \paper {}
+  \paper {
+    indent = 0.0
+    raggedright = ##t
+  }
 }
-%% new-chords-done %%