lilypond-devel
[Top][All Lists]
Advanced

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

ly:moment<=? ??


From: Simon Albrecht
Subject: ly:moment<=? ??
Date: Mon, 21 Dec 2015 02:08:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Hello,

while getting to terms with the accidentalStyle code I found that it would be useful (currently only for dodecaphonic-no-repeat-rule, scm/music-functions.scm:line 1682f.) to have a ly:moment<=? Scheme predicate function. It’s easy to do in Scheme:

(define (ly:moment<=? a b)
 (or (equal? a b)
  (ly:moment<? a b)))

but I see that the ly:moment<? procedure is defined in lily/moment-scheme.cc. Do you think it’s worth it to generally provide such a procedure? Or just define it locally in music-functions.scm?

Yours, Simon



reply via email to

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