Table of Contents

Class GraceNote

Namespace
Celeritas.Core.Ornamentation
Assembly
Celeritas.dll

Grace note ornament - decorative note(s) before the main note.

public sealed class GraceNote : Ornament
Inheritance
GraceNote
Inherited Members

Properties

DurationRatio

Duration ratio of grace notes to main note. For appoggiatura: typically 1/2 or 1/3 of main note (default 1/32). For acciaccatura the default is an absolute 1/32 whole note per grace note; explicitly setting this property overrides that with a ratio of the main note.

public Rational DurationRatio { get; init; }

Property Value

Rational

Intervals

Pitches of the grace note(s) relative to the base note. For single grace note: array of length 1. For multiple grace notes: array of 2+ elements.

public int[] Intervals { get; init; }

Property Value

int[]

Type

Type of grace note.

public GraceNoteType Type { get; init; }

Property Value

GraceNoteType

Methods

Expand()

Expands into the grace note(s) followed by the shortened main note.

public override NoteEvent[] Expand()

Returns

NoteEvent[]

Exceptions

ArgumentOutOfRangeException

Type is not a defined GraceNoteType value.