lilypond-devel
[Top][All Lists]
Advanced

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

Re: ly:moment<=? ??


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

On 21.12.2015 02:23, David Nalesnik wrote:


On Sun, Dec 20, 2015 at 7:08 PM, Simon Albrecht <address@hidden <mailto:address@hidden>> wrote:

    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?


It has already been provided: see moment<=? in scm/lily-library,scm.

Very good. Thanks for the hint.

Yours, Simon



reply via email to

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