44 std::vector<int> newMap,
66 void saveSettings(QDomDocument &doc, QDomElement &element)
override;
68 inline QString
nodeName()
const override {
return "keymap";}
int getBaseKey() const
Definition Keymap.h:58
std::size_t getSize() const
Definition Keymap.h:61
int getDegree(int key) const
Return scale degree for a given key, based on current map and first/middle/last notes.
Definition Keymap.cpp:72
const std::vector< int > & getMap() const
Definition Keymap.h:64
QString getDescription() const
Definition Keymap.cpp:106
int getMiddleKey() const
Definition Keymap.h:55
void loadSettings(const QDomElement &element) override
Definition Keymap.cpp:137
int getFirstKey() const
Definition Keymap.h:56
int getOctave(int key) const
Return octave offset for a given key, based on current map and the middle note.
Definition Keymap.cpp:89
Keymap()
Definition Keymap.cpp:36
int m_firstKey
first key that will be mapped
Definition Keymap.h:74
void setDescription(QString description)
Definition Keymap.cpp:112
int getLastKey() const
Definition Keymap.h:57
float getBaseFreq() const
Definition Keymap.h:59
int m_baseKey
key which is assigned the reference "base note"
Definition Keymap.h:77
float m_baseFreq
frequency of the base note (usually A4 @440 Hz)
Definition Keymap.h:78
QString nodeName() const override
Definition Keymap.h:68
int m_middleKey
first line of the map refers to this key
Definition Keymap.h:76
std::vector< int > m_map
key to scale degree mapping
Definition Keymap.h:73
int m_lastKey
last key that will be mapped
Definition Keymap.h:75
void saveSettings(QDomDocument &doc, QDomElement &element) override
Definition Keymap.cpp:118
QString m_description
name or description of the keymap
Definition Keymap.h:71
SerializingObject()
Definition SerializingObject.cpp:32
Definition AudioAlsa.cpp:35
ZCONST char * key
Definition crypt.c:587