lilypond-devel
[Top][All Lists]
Advanced

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

Re: Subtracting moments


From: Jan Nieuwenhuizen
Subject: Re: Subtracting moments
Date: Tue, 05 Jul 2005 23:03:55 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Kristof Bastiaensen writes:

> Hi, how can I subtract two moments in scheme?

#(define (ly:sub-moment a b)
  (ly:add-moment a (ly:mul-moment b (ly:make-moment -1 1))))

#(display (ly:sub-moment (ly:make-moment 4 1) (ly:make-moment 3 1)))

> Isn't there a function (ly:moment-sub moment1 moment2)?

Currently not.

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

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