MCPcopy Create free account
hub / github.com/LMMS/lmms / Chord

Class Chord

include/InstrumentFunctions.h:66–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66 struct Chord
67 {
68 private:
69 QString m_name;
70 ChordSemiTones m_semiTones;
71 int m_size;
72
73 public:
74 Chord() : m_size( 0 ) {}
75
76 Chord( const char * n, const ChordSemiTones & semi_tones );
77
78 int size() const
79 {
80 return m_size;
81 }
82
83 bool isScale() const
84 {
85 return size() > 6;
86 }
87
88 bool isEmpty() const
89 {
90 return size() == 0;
91 }
92
93 bool hasSemiTone( int8_t semiTone ) const;
94
95 int8_t last() const
96 {
97 return m_semiTones[size() - 1];
98 }
99
100 const QString & getName() const
101 {
102 return m_name;
103 }
104
105 int8_t operator [] ( int n ) const
106 {
107 return m_semiTones[n];
108 }
109 };
110
111
112 struct ChordTable : public QVector<Chord>

Callers 1

ChordTableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected