|
lmms
Cross-platform music production software
|
#include <Keymap.h>
Public Member Functions | |
| Keymap () | |
| Keymap (QString description, std::vector< int > newMap, int newFirst, int newLast, int newMiddle, int newBaseKey, float newBaseFreq) | |
| QString | getDescription () const |
| void | setDescription (QString description) |
| int | getMiddleKey () const |
| int | getFirstKey () const |
| int | getLastKey () const |
| int | getBaseKey () const |
| float | getBaseFreq () const |
| std::size_t | getSize () const |
| int | getDegree (int key) const |
| Return scale degree for a given key, based on current map and first/middle/last notes. | |
| int | getOctave (int key) const |
| Return octave offset for a given key, based on current map and the middle note. | |
| const std::vector< int > & | getMap () const |
| void | saveSettings (QDomDocument &doc, QDomElement &element) override |
| void | loadSettings (const QDomElement &element) override |
| QString | nodeName () const override |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| virtual QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) |
| virtual void | restoreState (const QDomElement &_this) |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Private Attributes | |
| QString | m_description |
| name or description of the keymap | |
| std::vector< int > | m_map |
| key to scale degree mapping | |
| int | m_firstKey |
| first key that will be mapped | |
| int | m_lastKey |
| last key that will be mapped | |
| int | m_middleKey |
| first line of the map refers to this key | |
| int | m_baseKey |
| key which is assigned the reference "base note" | |
| float | m_baseFreq |
| frequency of the base note (usually A4 @440 Hz) | |
| lmms::Keymap::Keymap | ( | ) |
| lmms::Keymap::Keymap | ( | QString | description, |
| std::vector< int > | newMap, | ||
| int | newFirst, | ||
| int | newLast, | ||
| int | newMiddle, | ||
| int | newBaseKey, | ||
| float | newBaseFreq ) |
|
inline |
|
inline |
| int lmms::Keymap::getDegree | ( | int | key | ) | const |
Return scale degree for a given key, based on current map and first/middle/last notes.
| key | MIDI key to be mapped |
| QString lmms::Keymap::getDescription | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| int lmms::Keymap::getOctave | ( | int | key | ) | const |
Return octave offset for a given key, based on current map and the middle note.
| key | MIDI key to be mapped |
|
inline |
|
overridevirtual |
Implements lmms::SerializingObject.
|
inlineoverridevirtual |
Implements lmms::SerializingObject.
|
overridevirtual |
Implements lmms::SerializingObject.
| void lmms::Keymap::setDescription | ( | QString | description | ) |
|
private |
frequency of the base note (usually A4 @440 Hz)
|
private |
key which is assigned the reference "base note"
|
private |
name or description of the keymap
|
private |
first key that will be mapped
|
private |
last key that will be mapped
|
private |
key to scale degree mapping
|
private |
first line of the map refers to this key