API / MusicTheory
KeyRegion record
A stretch of chords in one key.
Constructors
KeyRegion(KeySignature Key, int Start, int End, int? PivotIndex)A stretch of chords in one key.
Key- The key of the region.
Start- Index of the first chord (inclusive).
End- Index of the last chord (inclusive).
PivotIndex- The chord, just before
Start, that is diatonic in both this key and the previous region's; null when there is none, and for the first region.
Properties
KeySignature Key { get; init; }The key of the region.
int Start { get; init; }Index of the first chord (inclusive).
int End { get; init; }Index of the last chord (inclusive).
int? PivotIndex { get; init; }The chord, just before
Start, that is diatonic in both this key and the previous region's; null when there is none, and for the first region.