MusicTheory Docs API Toolbox GitHub NuGet
Contents

API / MusicTheory

ChordMatch record

Represents a single chord identification result.

Constructors

ChordMatch(Note Root, ChordType Type, int ExtraNotes)
Represents a single chord identification result.
Root
The identified root note (using the simplest enharmonic spelling).
Type
The chord type that matches the input note set.
ExtraNotes
The number of input notes not required by this chord type's base pattern. 0 = exact match; higher values indicate more tension notes / added colours.

Properties

Note Root { get; init; }
The identified root note (using the simplest enharmonic spelling).
ChordType Type { get; init; }
The chord type that matches the input note set.
int ExtraNotes { get; init; }
The number of input notes not required by this chord type's base pattern. 0 = exact match; higher values indicate more tension notes / added colours.
string Symbol { get; }
The lead-sheet symbol, e.g. Cmaj7, F#m7.

Methods

Chord ToChord()
Creates a Chord from this match result.
string ToString()
The symbol and the extra-note count, e.g. Cmaj7 (extra: 0).