Table of Contents

Struct FunctionalChord

Namespace
Celeritas.Core
Assembly
Celeritas.dll

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

Key KeySignature

The key the chord is analyzed in.

Roman RomanNumeralChord

The roman-numeral chord within that key.

Properties

Key

The key the chord is analyzed in.

public KeySignature Key { get; init; }

Property Value

KeySignature

PitchClassMask

12-bit pitch-class mask of this chord in Key.

public ushort PitchClassMask { get; }

Property Value

ushort

Roman

The roman-numeral chord within that key.

public RomanNumeralChord Roman { get; init; }

Property Value

RomanNumeralChord

RomanNumeral

Roman-numeral text for this chord (e.g. "ii7", "V").

public string RomanNumeral { get; }

Property Value

string

Root

Root of the chord as a pitch class.

public PitchClass Root { get; }

Property Value

PitchClass

RootPitchClass

Root pitch class (0-11) of the chord in Key.

public byte RootPitchClass { get; }

Property Value

byte

Methods

RootName(bool)

Root note name (e.g. "C", "F#").

public string RootName(bool preferSharps = true)

Parameters

preferSharps bool

Whether to spell accidentals as sharps rather than flats.

Returns

string

Symbol(bool)

Chord symbol for this chord (e.g. "Dm7", "Gmaj7").

public string Symbol(bool preferSharps = true)

Parameters

preferSharps bool

Whether to spell accidentals as sharps rather than flats.

Returns

string