Jacques Menu <[email protected]> writes:

> Hello folks,
>
> IIUC, at some point in its work, LilyPond represents the music as a
> sequene of events, each with a position in time and a duration.
>
> How are the grace notes handled in that context? They are actually
> displayed and played, but their duration is not taken into account in
> the duration of measures.

Times are represented as a sum of main time and grace time.  Grace notes
have a main time duration of zero and a grace time duration of their
length.  The last grace note in a group ends at a grace time of zero
(and the respective main time), so grace notes always start at a
_negative_ grace time before the respective main note (which has a grace
time of zero at both its start and end).

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to