A quarter note is represented as 1/4, a dotted half note as 3/4, ...
Obviously it makes sense to add and subtract moments, but
since they internally are represented as rational numbers, you
also get multiplication and division for free.
/Mats
Peter Chubb wrote:
Hi,
Reading the scheme code and the documentation, I'm struggling
with the concept of a moment in Lilypond. The documentation says it's
a rational number that represents a moment in musical time.
Therefore there should be a way to add a duration to a moment to get
another moment. But there doesn't seem to be. Likewise, there *are*
functions for adding, subtracting, multiplying and dividing moments.
Which makes no sense if a moment is a point in time.
So what *is* a moment? What do the numerator and denominator
represent? Beats? Bar numbers? Milliseconds from the start of the
piece? Inquiring minds want to know.
--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
A university is a non-profit organisation only in the sense that it
spends everything it gets ... Luca Turin.
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user