The event object
Type: Dictionary
The event object represents a discrete period of time during which one or more notes are performed, or in which a rest occurs.
All events require a value attribute to provide their duration as a note value. This duration is implicitly multiplied by the current time modification ratio, as specified by the process of sequencing the content of the event’s containing element.
Attributes
| Name | Type | Required? | Description |
|---|---|---|---|
| note value | Yes | The duration of this event. | |
| An array of kit note objects | No | ||
| lyrics | No | Lyrics for this event. | |
| event markings | No | ||
| An array of note objects | No | ||
| orientation | No | A specific orientation for this event. If not provided, the orientation is inherited from any ancestor element that specified it. If no ancestor did so, the orientation is determined automatically according to the implementation’s rendering rules. | |
| rest | No | ||
| An array of slur objects | No | ||
| staff number | No | A specific staff index for this event. If not provided, the value is inherited from any ancestor element that specified it. If no ancestor did so, the value is determined automatically according to the implementation’s rendering rules. The primary purpose of this attribute is to override a default staff assignment at the sequence level — as in cross-staff keyboard notation. |
|
| stem direction | No | Whether the stem of the note(s) in this event is up or down. If not provided, this is left to consuming software to decide automatically. | |
The string "event"
|
No | Optional. "type" is used to disambiguate between different types of objects within a sequence, and "type" is assumed to be "event" if it's not explicitly specified. |
Plus globally available attributes: _c, _x, id
Parent objects
This object is used by the following parent objects:
- grace: "content"
- multi-note tremolo: "content"
- sequence: "content"
Examples
This object is used in the following examples: