[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue 34 in lilypond: Grace synchronization
From: |
David Kastrup |
Subject: |
Re: Issue 34 in lilypond: Grace synchronization |
Date: |
Mon, 26 Sep 2011 09:32:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
"address@hidden" <address@hidden> writes:
> On Jul 21, 2011, at 11:10 AM, address@hidden wrote:
>>
>> I think that is a promising approach. I looked through the code
>> thinking about this issue two days ago, and began to look for a way
>> to default-initialize the grace_part_ of a Moment to something that
>> would sort before any defined value of grace_part_. I do not know
>> enough Scheme to know if Rational grace_part_ = -1 / 0 is guaranteed
>> to work as -inf.
>>
>
> I'm not sure if I completely get how you want to represent this value
> in Scheme, but typing -1/0 into the command line in guile will get you
> a numerical-overflow error.
Rational is not a native Scheme type but implemented in flower.
Rational grace_part_ = -1 / 0 most certainly will not work.
Rational grace_part_.set_infinite (-1)
should do. When make-moment is called omitting the grace part of the
argument list, this should become the default.
--
David Kastrup