[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should we be touching goops?

From: Jean Abou Samra
Subject: Re: Should we be touching goops?
Date: Sun, 5 Jun 2022 13:25:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

Le 04/06/2022 à 13:16, Luca Fascione a écrit :
On Sat, Jun 4, 2022 at 12:47 PM David Kastrup <> wrote:

LilyPond uses precise arithmetic.

Thanks David, just out of curiosity, where's a reference to the specific
implementation we're using?

C++ code uses the Rational type, which is implemented in
flower/ and flower/include/rational.hh. Scheme
code uses plain Guile numbers. Scheme mixes "exact" (rational)
and "inexact" (floating-point) numbers in a very lax way.
This is documented at

The conversion between the two is in lily/

The Moment type is defined in lily/ and lily/include/moment.hh.
It has two Rational members, a main part and a grace part.

Further, besides the floating point math segment, does the rest feel like
it's on target to you?

Honestly, I feel like we're making a big deal of something
that doesn't have a lot of practical ramifications for LilyPond.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]