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 for free.

  So you're saying a lilypond  moment is a duration of musical time, not an
  instant in musical time?   Is there a function to translate from
  lilypond moment to lilypond duration and back?

Moments are used interchangeably for points and durations.  There is a
fine point, though; Moment is really a tuple of rationals, with the
first being the 'main' time, and the 2nd the 'grace' time.


-- 
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


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 Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


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 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
lilypond-user@gnu.org
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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


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 for free.

So you're saying a lilypond  moment is a duration of musical time, not an
instant in musical time?   Is there a function to translate from
lilypond moment to lilypond duration and back?


--
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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


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 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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user