]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2671: Provide functions ly:moment-main and ly:moment-grace
authorDavid Kastrup <dak@gnu.org>
Thu, 28 Jun 2012 23:48:11 +0000 (01:48 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 23 Jul 2012 05:56:17 +0000 (07:56 +0200)
commite0defe91bab17c90c9d2e290367d04b300ebe5bf
treee080266fadee57c7d80e86de9efc00d2f35c3b6f
parentd4875d8e33dc505690710a07b1abb859732e8382
Issue 2671: Provide functions ly:moment-main and ly:moment-grace

Those will usually be more convenient than using ly:moment-*-numerator
and ly:moment-*-denominator.

Also, (/ (ly:moment-*-numerator ...) (ly:moment-*-denominator ...))
can't deal with infinite moment components.  This could theoretically
be amended by letting (ly:moment-*-denominator ...) resolve to
_inexact_ zero (in which case the division turns out ±inf.0), but that
is all rather hand-wavy and flimsy.  Being able to access the
components directly is more straightforward.
lily/moment-scheme.cc