denigma 4.0.0
Loading...
Searching...
No Matches
denigma::classify::chord::Degree Struct Reference

One degree alteration that a chord suffix applies on top of its chord::Quality. More...

#include <chords.h>

Public Types

enum class  Type { Add , Remove , Alter }
 How the degree modifies the chord. More...
 

Public Attributes

int value {}
 Degree number relative to the root, such as 9, 11, or 13.
 
int alteration {}
 Chromatic alteration in semitones: -1 for flat, 1 for sharp, 0 for none.
 
Type type { Type::Add }
 How the degree modifies the chord.
 
bool impliedByText {}
 True when the suffix text already spells this degree out, such as the seventh in "7sus4".
 

Detailed Description

One degree alteration that a chord suffix applies on top of its chord::Quality.

Member Enumeration Documentation

◆ Type

How the degree modifies the chord.

Enumerator
Add 

The degree is added to the chord.

Remove 

The degree is omitted from the chord.

Alter 

A degree already present in the chord is chromatically altered.

Member Data Documentation

◆ impliedByText

bool denigma::classify::chord::Degree::impliedByText {}

True when the suffix text already spells this degree out, such as the seventh in "7sus4".

The chord sounds it, but a consumer that renders the suffix text must not draw the degree a second time.


The documentation for this struct was generated from the following file: