|
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
[Prev in Thread] | Current Thread | [Next in Thread] |