]> git.donarmstrong.com Git - lilypond.git/commitdiff
* Documentation/topdocs/NEWS.tely (Top): add duration-log override
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 4 Oct 2006 10:46:33 +0000 (10:46 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 4 Oct 2006 10:46:33 +0000 (10:46 +0000)
example.

* scm/output-lib.scm (string-number::calc-text): new function.
(note-head::calc-duration-log): new function.

* scm/output-lib.scm (fingering::calc-text): new function.

ChangeLog
Documentation/topdocs/NEWS.tely
input/regression/note-head-solfa.ly

index a58c531af6b6df45e42deb8b7b22153c97e43f6d..d560201a60dcb5ec7436da2584af44fae2b6048a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-10-04  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
+       * Documentation/topdocs/NEWS.tely (Top): add duration-log override
+       example.
+
        * scm/define-grobs.scm (all-grob-descriptions): use callback to
        calc dot count.
 
index 254570f11c46612257ce25bfd2ac1031b53e205c..b9786acc9d175f49cf33e0c2155e857c05080bad 100644 (file)
@@ -66,6 +66,17 @@ which scares away people.
 
 @end ignore
 
+@item Calculation of note head durations is now softcoded. This means
+that they can be changed on the fly
+
+@lilypond[relative=1,fragment,ragged-right]
+  %% use half heads for whole notes.
+  \override NoteHead #'duration-log = #(lambda (grob)
+                                       (min 3 (max 1 (ly:duration-log
+                                        (ly:event-property (event-cause grob) 'duration)))))
+                                         
+  c1 c2 c4 c8[ c16 c]
+@end lilypond
 
 
 @c Please insert any new material above this line.  -gp
index a7a78b8eba7a38b8daa05a2b6bf2ca4cd31c741f..4e92c3e10eb61420adf1e79edf94ecff9b391fc9 100644 (file)
@@ -11,7 +11,9 @@ to the @code{tonic} property."
 fragment = {
   \key c \major
   \set shapeNoteStyles = ##(do re mi fa #f la ti)
-  c d e f g a b c d e f g a b c
+  c1 d e f g a b c d e f g a b c
+  c,,2 d e f g a b c d e f g a b c
+  c,,4 d e f g a b c d e f g a b c
 }