Class ParseResult
Result of parsing music notation.
public sealed record ParseResult : IEquatable<ParseResult>
- Inheritance
-
ParseResult
- Implements
- Inherited Members
Properties
Directives
Notation directives (tempo, section, dynamics, etc.) found in the input.
public NotationDirective[] Directives { get; init; }
Property Value
Errors
Parse errors collected during lexing/parsing. Always empty on a result handed to a caller: parsing throws ArgumentException as soon as an error is recorded, so there is nothing here to inspect — catch the exception instead.
public IReadOnlyList<string> Errors { get; init; }
Property Value
Notes
The parsed note events.
public NoteEvent[] Notes { get; init; }
Property Value
TimeSignature
The time signature found in the input, or null if none was specified.
public TimeSignature? TimeSignature { get; init; }