[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lilypond-auto] Issue 2671 in lilypond: Patch: Provide functions ly:
From: |
lilypond |
Subject: |
Re: [Lilypond-auto] Issue 2671 in lilypond: Patch: Provide functions ly:moment-main and ly:moment-grace |
Date: |
Mon, 23 Jul 2012 06:25:11 +0000 |
Updates:
Status: Fixed
Labels: -Patch-push Fixed_2_15_42
Comment #5 on issue 2671 by address@hidden: Patch: Provide functions
ly:moment-main and ly:moment-grace
http://code.google.com/p/lilypond/issues/detail?id=2671
Pushed to staging as
commit e0defe91bab17c90c9d2e290367d04b300ebe5bf
Author: David Kastrup <address@hidden>
Date: Fri Jun 29 01:48:11 2012 +0200
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.