Re: What's a moment?

2008-05-01 Thread Han-Wen Nienhuys
2008/4/30 Peter Chubb [EMAIL PROTECTED]: Mats A quarter note is represented as 1/4, a dotted half note as 3/4, Mats ... Obviously it makes sense to add and subtract moments, but Mats since they internally are represented as rational numbers, you Mats also get multiplication and division

Re: What's a moment?

2008-05-01 Thread Han-Wen Nienhuys
2008/4/30 Peter Chubb [EMAIL PROTECTED]: 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. Questions like these are probably material for the devel list. -- Han-Wen

Re: What's a moment?

2008-04-30 Thread Mats Bengtsson
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

Re: What's a moment?

2008-04-30 Thread Peter Chubb
Mats == Mats Bengtsson [EMAIL PROTECTED] writes: Mats A quarter note is represented as 1/4, a dotted half note as 3/4, Mats ... Obviously it makes sense to add and subtract moments, but Mats since they internally are represented as rational numbers, you Mats also get multiplication and division

What's a moment?

2008-04-29 Thread Peter Chubb
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