]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/noteheadstyle.ly
release: 1.3.121
[lilypond.git] / input / test / noteheadstyle.ly
index 0db7a577c9aaa5a45e3267f9a81a7218fc78b783..c59f40c073fc3a5ec266938a6dddd316fd869c57 100644 (file)
@@ -1,42 +1,56 @@
+\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.
+
+Harmonic notes have a different shape and different
+dimensions. Nevertheless, noteheads in both styles can be combined, on
+either up or down stems.
+";
+}
+
+\version "1.3.117";
+
 
 \score { \notes \relative c{
 % anyone wanna pop?
 c''4 c2 c8  c16 c16 c1 c\breve
-\property Voice.NoteHead \push #'style = #'diamond
+\property Voice.NoteHead \override #'style = #'diamond
 c4 c2 c8  c16 c16  c1 c\breve
-\property Voice.NoteHead \push #'style = #'transparent
+\property Voice.NoteHead \override #'style = #'transparent
 c4 c2 c8  c16 c16  c1 c\breve
-\property Voice.NoteHead \push #'style = #'cross
+\property Voice.NoteHead \override #'style = #'cross
 c4 c2 c8  c16 c16  c1 c\breve
-\property Voice.NoteHead \push #'style = #'mensural
+\property Voice.NoteHead \override #'style = #'mensural
 c4 c2 c8  c16 c16  c1 c\breve c\longa
-\property Voice.NoteHead \push #'style = #'harmonic
+\property Voice.NoteHead \override #'style = #'harmonic
 c4 c2 c8  c16 c16  c1 c\breve
-\property Voice.NoteHead \push #'style = #'baroque
+\property Voice.NoteHead \override #'style = #'baroque
 c4 c2 c8  c16 c16  c1 c\breve c\longa
 
 
    \context Voice <
     \context Thread = TA
       {
-        \property Thread.NoteHead \push #'style = #'cross
-        \property Voice.Stem \push #'direction = #1
+        \property Thread.NoteHead \override #'style = #'cross
+        \property Voice.Stem \override #'direction = #1
         c16
        }
     \context Thread = TB
-      { \property Thread.NoteHead \push #'style = #'default a16  }
+      { \property Thread.NoteHead \override #'style = #'default a16  }
 
     \context Thread = TC
-      { \property Thread.NoteHead \push #'style = #'mensural d16 }
+      { \property Thread.NoteHead \override #'style = #'mensural d16 }
 
   >
 
 
    \context Voice <\context Thread = TA {
-   \property Thread.NoteHead \push #'style = #'default
+   \property Thread.NoteHead \override #'style = #'default
    c4 c4 }
 \context Thread = TB {
-   \property Thread.NoteHead \push #'style = #'mensural
+   \property Thread.NoteHead \override #'style = #'mensural
   c'4 \stemDown c
 } >