2006-05-06 Han-Wen Nienhuys <hanwen@lilypond.org>
+ * ly/music-functions-init.ly: new function featherDurations
+
* lily/beam.cc: read grow-direction for feathered beaming.
* Documentation/topdocs/NEWS.tely (Top): typo.
indent = #0.0
}
+%
+% Unfortunately this quickly bumps into overflow problems. Should use
+% a linear decrease instead?
+%
+
\featherDurations #(ly:make-moment 3 4) \relative c'' {
\override Beam #'grow-direction = #LEFT
c16[
featherDurations=
#(define-music-function (parser location factor argument) (ly:moment? ly:music?)
+
+ "Rearrange durations in ARGUMENT so there is an
+acceleration/deceleration. "
+
(let*
((orig-duration (ly:music-length argument))
- (multiplier (ly:make-moment 1 1))
- )
+ (multiplier (ly:make-moment 1 1)))
(music-map
(lambda (mus)
mus)
argument)
- (display (list (ly:music-length argument) orig-duration))
(ly:music-compress
argument
(ly:moment-div orig-duration (ly:music-length argument)))