From 69d3769a8ef976649f8e1763422583936842ddd0 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 4 Oct 2006 10:46:33 +0000 Subject: [PATCH] * 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. --- ChangeLog | 3 +++ Documentation/topdocs/NEWS.tely | 11 +++++++++++ input/regression/note-head-solfa.ly | 4 +++- 3 files changed, 17 insertions(+), 1 deletion(-) 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 } -- 2.39.5