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.
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.
@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
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
}