#include <Chord.h>
|
static std::string | normalize (const std::string &input) |
|
static Chord | of (const std::string &name) |
|
Chord in a particular key
◆ Chord()
Chord::Chord |
( |
const std::string & |
input | ) |
|
|
explicit |
◆ delta()
int Chord::delta |
( |
const Chord & |
target | ) |
const |
Delta to another Key calculated in +/- semitones
- Parameters
-
target | key to calculate delta to |
- Returns
- delta +/- semitones to another key
◆ getName()
std::string Chord::getName |
( |
| ) |
const |
Compute the name from the root pitch class and description
- Returns
- chord name
◆ has_value()
bool Chord::has_value |
( |
| ) |
const |
Whether this Chord is null
- Returns
- true if non-null
◆ isAcceptable()
bool Chord::isAcceptable |
( |
const Chord & |
other | ) |
const |
Whether one chord is acceptable as a substitute another
- Parameters
-
- Returns
- true if acceptable
◆ isNoChord()
bool Chord::isNoChord |
( |
| ) |
const |
Whether this is a No Chord instance
- Returns
- true if No Chord
◆ normalize()
std::string Chord::normalize |
( |
const std::string & |
input | ) |
|
|
static |
Parse a chord description and return its most basic representation from the form dictionary
- Parameters
-
- Returns
- most basic synonym, or original if already most basic
◆ of()
Chord Chord::of |
( |
const std::string & |
name | ) |
|
|
static |
Chord of a particular key, e.g. of("C minor 7")
- Parameters
-
- Returns
- new Chord
◆ operator<()
bool Chord::operator< |
( |
const Chord & |
other | ) |
const |
◆ operator==()
bool Chord::operator== |
( |
const Chord & |
other | ) |
const |
◆ slashRootPitchClass()
◆ toString()
std::string Chord::toString |
( |
| ) |
const |
std::string expression of interval pitch group, original name
- Returns
- scale as string
◆ accidental
◆ description
std::string XJ::Chord::description |
◆ root
◆ slashRoot
The documentation for this class was generated from the following files:
- /home/runner/work/xjmusic/xjmusic/engine/include/xjmusic/music/Chord.h
- /home/runner/work/xjmusic/xjmusic/engine/src/music/Chord.cpp