From: Han-Wen Nienhuys Date: Wed, 4 Oct 2006 10:46:32 +0000 (+0000) Subject: * Documentation/topdocs/NEWS.tely (Top): add duration-log override X-Git-Tag: release/2.10.0-2~242 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=952befb49385bd27193c39033cf83d716abf5cf1;p=lilypond.git * Documentation/topdocs/NEWS.tely (Top): add duration-log override 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. --- diff --git a/ChangeLog b/ChangeLog index a58c531af6..d560201a60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-04 Han-Wen Nienhuys + * Documentation/topdocs/NEWS.tely (Top): add duration-log override + example. + * scm/define-grobs.scm (all-grob-descriptions): use callback to calc dot count. diff --git a/Documentation/topdocs/NEWS.tely b/Documentation/topdocs/NEWS.tely index 254570f11c..b9786acc9d 100644 --- a/Documentation/topdocs/NEWS.tely +++ b/Documentation/topdocs/NEWS.tely @@ -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 diff --git a/input/regression/note-head-solfa.ly b/input/regression/note-head-solfa.ly index a7a78b8eba..4e92c3e10e 100644 --- a/input/regression/note-head-solfa.ly +++ b/input/regression/note-head-solfa.ly @@ -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 }