Struct FunctionalChord
A diatonic functional chord described by roman numeral + key.
public readonly record struct FunctionalChord : IEquatable<FunctionalChord>
- Implements
- Inherited Members
Constructors
FunctionalChord(KeySignature, RomanNumeralChord)
A diatonic functional chord described by roman numeral + key.
public FunctionalChord(KeySignature Key, RomanNumeralChord Roman)
Parameters
KeyKeySignatureThe key the chord is analyzed in.
RomanRomanNumeralChordThe roman-numeral chord within that key.
Properties
Key
The key the chord is analyzed in.
public KeySignature Key { get; init; }
Property Value
PitchClassMask
12-bit pitch-class mask of this chord in Key.
public ushort PitchClassMask { get; }
Property Value
Roman
The roman-numeral chord within that key.
public RomanNumeralChord Roman { get; init; }
Property Value
RomanNumeral
Roman-numeral text for this chord (e.g. "ii7", "V").
public string RomanNumeral { get; }
Property Value
Root
Root of the chord as a pitch class.
public PitchClass Root { get; }
Property Value
RootPitchClass
Root pitch class (0-11) of the chord in Key.
public byte RootPitchClass { get; }
Property Value
Methods
RootName(bool)
Root note name (e.g. "C", "F#").
public string RootName(bool preferSharps = true)
Parameters
preferSharpsboolWhether to spell accidentals as sharps rather than flats.
Returns
Symbol(bool)
Chord symbol for this chord (e.g. "Dm7", "Gmaj7").
public string Symbol(bool preferSharps = true)
Parameters
preferSharpsboolWhether to spell accidentals as sharps rather than flats.