Newbie event question

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Newbie event question

Jacques Menu Muzhic
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.

Thanks for your help!

JM


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie event question

David Kastrup
Jacques Menu <[hidden email]> 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
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie event question

Jacques Menu Muzhic
Thanks David. Are after grace notes simply handled with positive grace time?

Jm

> Le 20 oct. 2018 à 00:35, David Kastrup <[hidden email]> a écrit :
>
> Jacques Menu <[hidden email]> 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
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie event question

David Kastrup
Jacques Menu <[hidden email]> writes:

> Thanks David. Are after grace notes simply handled with positive grace time?

Notation Reference, "Grace Notes":

   If you want to end a note with a grace, use the ‘\afterGrace’
command.  It takes two arguments: the main note, and the grace notes
following the main note.

     \relative { c''1 \afterGrace d1 { c16[ d] } c1 }

[image]

   This will place the grace notes _after_ the start of the main note.
The point of time where the grace notes are placed is a given fraction
of the main note’s duration.  The default setting of

     afterGraceFraction = 3/4

may be redefined at top level.  Individual ‘\afterGrace’ commands may
have the fraction specified right after the command itself instead.

Notation Reference, "Available Music Functions":

‘afterGrace’ [music] - FRACTION [non-negative rational, fraction, or moment] MAIN (music) GRACE (music)
     Create GRACE note(s) after a MAIN music expression.

     The musical position of the grace expression is after a given
     fraction of the main note’s duration has passed.  If FRACTION is
     not specified as first argument, it is taken from
     ‘afterGraceFraction’ which has a default value of ‘3/4’.


--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Newbie event question

Jacques Menu Muzhic
Fine David, thanks!

JM

> Le 20 oct. 2018 à 11:16, David Kastrup <[hidden email]> a écrit :
>
> Jacques Menu <[hidden email]> writes:
>
>> Thanks David. Are after grace notes simply handled with positive grace time?
>
> Notation Reference, "Grace Notes":
>
>   If you want to end a note with a grace, use the ‘\afterGrace’
> command.  It takes two arguments: the main note, and the grace notes
> following the main note.
>
>     \relative { c''1 \afterGrace d1 { c16[ d] } c1 }
>
> [image]
>
>   This will place the grace notes _after_ the start of the main note.
> The point of time where the grace notes are placed is a given fraction
> of the main note’s duration.  The default setting of
>
>     afterGraceFraction = 3/4
>
> may be redefined at top level.  Individual ‘\afterGrace’ commands may
> have the fraction specified right after the command itself instead.
>
> Notation Reference, "Available Music Functions":
>
> ‘afterGrace’ [music] - FRACTION [non-negative rational, fraction, or moment] MAIN (music) GRACE (music)
>     Create GRACE note(s) after a MAIN music expression.
>
>     The musical position of the grace expression is after a given
>     fraction of the main note’s duration has passed.  If FRACTION is
>     not specified as first argument, it is taken from
>     ‘afterGraceFraction’ which has a default value of ‘3/4’.
>
>
> --
> David Kastrup


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