9 #ifndef __INDEXED_VECTORS_H__E2C81E6D_A292_41d7_B830_F7C07D335205__
10 #define __INDEXED_VECTORS_H__E2C81E6D_A292_41d7_B830_F7C07D335205__
12 #include "Common/_TChar.h"
21 typedef signed short HALFSTEP;
23 enum { MAX_INTERVALS = 16, MAX_NAME = 16 };
33 std::map<TCHAR, std::vector<const ChordDef *> > m_Definitions;
83 #endif // __INDEXED_VECTORS_H__E2C81E6D_A292_41d7_B830_F7C07D335205__
Chords()
Initialize the Chords with default definitions.
void LoadDefinitions(const ChordDef *pChords=NULL, int nSize=0)
unsigned int ExtractMatchingChord(const TCHAR *szToken, ChordDef *retVal) const
Definition of a Chord entry.
TCHAR szChordName[MAX_NAME]
Name of the Chord.
HALFSTEP Intervals[MAX_INTERVALS]
The half-step intervals for the Chord. Zero indicates root note.
unsigned short nIntervalCount
Number of valid entries in the Intervals[] array.
Maniuplates Chord definitions for Western Music
static unsigned int GetDefaultMatchingChord(const TCHAR *szToken, ChordDef *retVal)
void AddDefinitions(const ChordDef *pChords, int nSize)