[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tempo as REAL number
From: |
David Kastrup |
Subject: |
Re: tempo as REAL number |
Date: |
Thu, 16 Jul 2015 10:23:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
jan <address@hidden> writes:
> Hi,
>
> i did not expect the tempo definition in Lilypond to be required to be an
> integer.
>
> For instance
>
> \tempo 4 = 82.3
>
> produces the error.
>
> "syntax error, unexpected REAL"
>
> Since in midi tempo definitions are of type float
They aren't. They are exact fractions.
> I wonder if there is a reason for Lilypond to restrict the tempo to
> integers. If there is no reason, I would like to suggest to make the
> tempo command more general and accept reals.
Inexact numbers would make LilyPond's Midi output unpredictable
(unsuitable for binary comparison). I am not sure this would be a
problem: we have the same situation with the extensive floating point
calculations involved in the printed output.
--
David Kastrup