[Adding reference that dropped out.] I used continued fractions; see [1], which gives some useful algorithms. They converge very quickly, and one can refine to a suitable degree. In music, one does not need very large denominators, as the timing quickly becomes fine enough.
1. https://en.wikipedia.org/wiki/Continued_fraction _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel