The grace object | MNX specification

# The grace object

Type: Dictionary

A grace object encodes grace notes. Its "content" contains the note data.

Within "content", each inner event's "value" encodes the visual rhythmic appearance of the grace note — e.g., "/8" for an eighth note.

## Attributes

Name | Type | Required? | Description
--- | --- | --- | ---
color | color | No | An optional color to be used when rendering this object and all child objects.
content | An array of event objects | Yes |
graceType | grace type | No | The kind of grace notes to use. The default value is "stealPrevious".
slash | boolean | No | Whether grace notes are notated with a slash. The default value (true) specifies a slash, indicating that the grace notes are displayed with a diagonal stroke and are to be performed quickly and not in their notated rhythm. Otherwise, they are performed with the notated note values according to the performance characteristics given by "graceType".
type | The string `"grace"` | Yes |

Plus globally available attributes: _c, _x, id

## Parent objects

This object is used by the following parent objects:

- sequence: "content"

## Examples

This object is used in the following examples:

Beams (with inner grace notes), Grace note, Grace notes (beamed)