]> 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 8d09d5e2ea70e9ab687942326eaf4611c86171e9..c8050737441daaf67627728d4d88ca5a0f96fe3a 100644 (file)
-\version "1.9.8"
+\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 \transpose c c {
-    \clef C
-
-    \property Staff.NoteHead \set #'style = #'default
-    <<
+pattern = \notes <<
       \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'default" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
+        \override Stem  #'direction = #UP
+        e'4
+         e'2. e'1 e'\breve*1/2 e'\longa*1/4
       }
       \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
+        \override Stem  #'direction = #DOWN
+         a4 a2. a1 a\breve*1/2 a\longa*1/4
       }
     >>
-    \break
 
-    \property Staff.NoteHead \set #'style = #'baroque
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'baroque" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
-    \break
-
-    \property Staff.NoteHead \set #'style = #'neo_mensural
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'neo\_mensural" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
-    \break
+\score {
+  \notes \transpose c c {
+    \clef C
 
-    \property Staff.NoteHead \set #'style = #'mensural
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'mensural" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
-    \break
+    \override Staff.NoteHead  #'style = #'default
+    s1*0^\markup { "default" }
+    \pattern
 
-    \property Staff.NoteHead \set #'style = #'harmonic
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'harmonic" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
-    \break
+    \override Staff.NoteHead  #'style = #'baroque
+    s1*0^\markup { "baroque" }
+    \pattern
+        \break
 
-    \property Staff.NoteHead \set #'style = #'diamond
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'diamond" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
-    \break
+    \override Staff.NoteHead  #'style = #'neo_mensural
+    s1*0^\markup { "neomensural" }
+    \pattern
 
-    \property Staff.NoteHead \set #'style = #'cross
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'cross" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
+    \override Staff.NoteHead  #'style = #'mensural
+    s1*0^\markup { "mensural" }
+    \pattern
+    
     \break
 
-    \property Staff.NoteHead \set #'style = #'xcircle
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'xcircle" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
-    \break
+    \override Staff.NoteHead  #'style = #'harmonic
+    s1*0^\markup { "harmonic" }
+    \pattern
 
-    \property Staff.NoteHead \set #'style = #'triangle
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'triangle" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
+    \override Staff.NoteHead  #'style = #'diamond
+    s1*0^\markup { "diamond" }
+    \pattern
     \break
 
-    \property Staff.NoteHead \set #'style = #'slash
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'style = \#'slash" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
-    \break
+    \override Staff.NoteHead  #'style = #'cross
+    s1*0^\markup { "cross" }
+    \pattern
 
-    \property Staff.NoteHead \override #'transparent = ##t
-    <<
-      \new Voice {
-        \property Voice.Stem \set #'direction = #1 %up
-        e'16^\markup { "NoteHead \#'transparent = \#\#t" }
-        e'16 e'8 e'4 e'2 e'1 e'\breve e'\longa
-      }
-      \new Voice {
-        \property Voice.Stem \set #'direction = #-1 %down
-        a16 a16 a8 a4 a2 a1 a\breve a\longa
-      }
-    >>
-    \property Staff.NoteHead \revert #'transparent
+    \override Staff.NoteHead  #'style = #'xcircle
+    s1*0^\markup { "xcircle" }
+\pattern
+    
     \break
 
-    \new Voice <<
-      \new Thread {
-        \property Thread.NoteHead \set #'style = #'cross
-        \property Voice.Stem \set #'direction = #1
-        c'16
-      }
-      \new Thread {
-        \property Thread.NoteHead \set #'style = #'default a16
-      }
-      \new Thread {
-        \property Thread.NoteHead \set #'style = #'mensural d'16
-      }
-    >>
+    \override Staff.NoteHead  #'style = #'triangle
+    s1*0^\markup { "triangle" }
+    \pattern
+    
 
-    \context Voice <<
-      \new Thread {
-        \property Thread.NoteHead \set #'style = #'cross
-        c'4 c'4 c'4 c'4
-      }
-      \new Thread {
-        \property Thread.NoteHead \set #'style = #'mensural
-        c''4 \stemDown c''
-        \property Thread.NoteHead \set #'style = #'slash
-        \stemUp c''4 \stemDown c''
-      }
-    >>
+    \override Staff.NoteHead  #'style = #'slash
+    s1*0^\markup { "slash" }
+    \pattern
+    \break
   }
 
   \paper {