MusicTheory Docs API Toolbox GitHub NuGet
Contents

API / MusicTheory

RomanNumeral record

A Roman-numeral reading of one chord in a key.

Constructors

RomanNumeral(int Degree, Alteration DegreeAlteration, ChordType Type, int? Inversion, HarmonicFunction Function, int? TargetDegree, KeyMode Mode = KeyMode.Major)
A Roman-numeral reading of one chord in a key.
Degree
Scale degree 1..7 (5 for a secondary dominant).
DegreeAlteration
Flat or sharp relative to the key's scale (bVII, #IV).
Type
The chord type.
Inversion
1, 2 or 3 when the slash bass is the 3rd, 5th or 7th; null in root position.
Function
Diatonic, borrowed, secondary dominant or chromatic.
TargetDegree
The degree a secondary dominant resolves to (V/V → 5).
Mode
Mode of the key, used to write the target of a secondary dominant.

Properties

int Degree { get; init; }
Scale degree 1..7 (5 for a secondary dominant).
Alteration DegreeAlteration { get; init; }
Flat or sharp relative to the key's scale (bVII, #IV).
ChordType Type { get; init; }
The chord type.
int? Inversion { get; init; }
1, 2 or 3 when the slash bass is the 3rd, 5th or 7th; null in root position.
HarmonicFunction Function { get; init; }
Diatonic, borrowed, secondary dominant or chromatic.
int? TargetDegree { get; init; }
The degree a secondary dominant resolves to (V/V → 5).
KeyMode Mode { get; init; }
Mode of the key, used to write the target of a secondary dominant.

Methods

string ToString()
Renders the numeral: upper case for major, lower case for minor/diminished, ° ø + for quality, the type's extension (V7, Imaj7, ii7), figured-bass inversions (V6, I64, V65, V43, V42) and /target for secondary dominants (V7/vi).