lilypond-user
[Top][All Lists]
Advanced

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

Re: Comparing durations in Scheme


From: Gilles THIBAULT
Subject: Re: Comparing durations in Scheme
Date: Fri, 6 May 2011 23:36:27 +0200


I am not sure what information is stored inside of durations, but it is
possible that equal? will do the trick (it does a recursive compare).

#(display (equal? (ly:make-duration 1 2 0 0)(ly:make-duration 2 4 0 0)))

return #f

( the duration of an half note vs 2 quarter notes)

[ Same thing for eqv? and eq? ]

Gilles




reply via email to

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