|
Ardour
9.2-541-gc1841a13dd
|
#include <chord_provider.h>
Public Types | |
| enum | TET12Intervals { Unison = 0 , MinorSecond = 1 , MajorSecond = 2 , MinorThird = 3 , MajorThird = 4 , PerfectFourth = 5 , Tritone = 6 , PerfectFifth = 7 , MinorSixth = 8 , MajorSixth = 9 , MinorSeventh = 10 , MajorSeventh = 11 , PerfectOctave = 12 , P0 = PerfectOctave , m2 = MinorSecond , M2 = MajorSecond , m3 = MinorThird , M3 = MajorThird , P4 = PerfectFourth , A4 = Tritone , d5 = Tritone , P5 = PerfectFifth , m6 = MinorSixth , M6 = MajorSixth , m7 = MinorSeventh , M7 = MajorSeventh , P8 = PerfectOctave , flat2 = MinorSecond , fourth = PerfectFourth , flat5 = Tritone , sharp5 = MinorSixth , dom7 = MinorSeventh , dblflat7 = MajorSixth , AugmentedFifth = 8 , DiminishedFifth = 6 , DiminishedSeventh = 9 , MajorNinth = 14 , M9 = 14 , PerfectEleventh = 17 , P11 = 17 , MajorThirteenth = 21 , M13 = 21 } |
| typedef std::vector< int > | Intervals |
| typedef std::map< int64_t, std::string > | IntervalsToChordName |
| typedef std::map< std::string, Intervals > | ChordNameToIntervals |
Public Member Functions | |
| ChordProvider () | |
| virtual | ~ChordProvider () |
| virtual bool | get_midi_chord (int root_pitch, Intervals &pitches) const =0 |
| std::string | identify_chord (Intervals const &) |
Static Public Member Functions | |
| static void | build_12tet_chords () |
| template<typename... Names> | |
| static void | register_12tet_chord (Intervals const &intervals, std::string const &canonical_name, Names...chord_names) |
Static Public Attributes | |
| static IntervalsToChordName | tet12_names |
| static ChordNameToIntervals | tet12_chords |
Definition at line 29 of file chord_provider.h.
| typedef std::map<std::string,Intervals> ARDOUR::ChordProvider::ChordNameToIntervals |
Definition at line 44 of file chord_provider.h.
| typedef std::vector<int> ARDOUR::ChordProvider::Intervals |
Definition at line 35 of file chord_provider.h.
| typedef std::map<int64_t, std::string> ARDOUR::ChordProvider::IntervalsToChordName |
Definition at line 40 of file chord_provider.h.
Definition at line 52 of file chord_provider.h.
|
inline |
Definition at line 32 of file chord_provider.h.
|
inlinevirtual |
Definition at line 33 of file chord_provider.h.
|
static |
|
pure virtual |
Implemented in Pianoroll, EditingContext, and ChordBox.
| std::string ARDOUR::ChordProvider::identify_chord | ( | Intervals const & | ) |
|
static |
|
static |
Definition at line 45 of file chord_provider.h.
|
static |
Definition at line 41 of file chord_provider.h.