Re: Confused by zero moments

Lukas-Fabian Moser <[email protected]> Mon, 13 Jul 2026 15:21:10 +0200
Newsgroups gmane.comp.gnu.lilypond.devel
Message-ID <[email protected]>
 > Probably Dan will be able to say more about this; I just want to give=
=20
a maybe [more] concise data point:

Ugh, it seems HTML formatting messed my code up, sorry.

Another try:

\version "2.22"

music =3D {}

#(define ZERO (ly:music-length music))

#(pretty-print (equal? ZERO ZERO-MOMENT))
#(pretty-print (ly:moment-div ZERO ZERO-MOMENT))
#(pretty-print (ly:moment-div ZERO ZERO))
#(pretty-print (ly:moment-div ZERO-MOMENT ZERO))
#(pretty-print (ly:moment-div ZERO-MOMENT ZERO-MOMENT))

yields with 2.22.1:

#t
#<Mom 0>
#<Mom 0>
#<Mom 0>
#<Mom 0>

and with 2.26.0:

#t
#<Mom infinityGinfinity>
#<Mom 0>
#<Mom 0>
#<Mom nanGinfinity>

Lukas