|
lmms
Cross-platform music production software
|
#include <Microtuner.h>
Public Member Functions | |
| Microtuner () | |
| bool | enabled () const |
| bool | keyRangeImport () const |
| int | currentScale () const |
| int | currentKeymap () const |
| BoolModel * | enabledModel () |
| ComboBoxModel * | scaleModel () |
| ComboBoxModel * | keymapModel () |
| BoolModel * | keyRangeImportModel () |
| int | firstKey () const |
| int | lastKey () const |
| int | baseKey () const |
| float | baseFreq () const |
| float | keyToFreq (int key, int userBaseNote) const |
| Return frequency for a given MIDI key, using the active mapping and scale. | |
| int | octaveSize () const |
| QString | nodeName () const override |
| void | saveSettings (QDomDocument &document, QDomElement &element) override |
| void | loadSettings (const QDomElement &element) override |
| Public Member Functions inherited from lmms::Model | |
| Model (Model *parent, QString displayName=QString(), bool defaultConstructed=false) | |
| ~Model () override=default | |
| bool | isDefaultConstructed () const |
| Model * | parentModel () const |
| virtual QString | displayName () const |
| virtual void | setDisplayName (const QString &displayName) |
| virtual QString | fullDisplayName () const |
| Public Member Functions inherited from lmms::JournallingObject | |
| JournallingObject () | |
| ~JournallingObject () override | |
| jo_id_t | id () const |
| void | saveJournallingState (const bool newState) |
| void | restoreJournallingState () |
| void | addJournalCheckPoint () |
| QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) override |
| void | restoreState (const QDomElement &_this) override |
| bool | isJournalling () const |
| void | setJournalling (const bool _sr) |
| bool | testAndSetJournalling (const bool newState) |
| bool | isJournallingStateStackEmpty () const |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Protected Slots | |
| void | updateScaleList (int index) |
| Update scale name displayed in the microtuner scale list. | |
| void | updateKeymapList (int index) |
| Update keymap name displayed in the microtuner scale list. | |
Private Attributes | |
| BoolModel | m_enabledModel |
| Enable microtuner (otherwise using 12-TET @440 Hz). | |
| ComboBoxModel | m_scaleModel |
| ComboBoxModel | m_keymapModel |
| BoolModel | m_keyRangeImportModel |
Additional Inherited Members | |
| Signals inherited from lmms::Model | |
| void | dataChanged () |
| void | dataUnchanged () |
| void | propertiesChanged () |
| Protected Member Functions inherited from lmms::JournallingObject | |
| void | changeID (jo_id_t _id) |
|
explicit |
| float lmms::Microtuner::baseFreq | ( | ) | const |
| int lmms::Microtuner::baseKey | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| int lmms::Microtuner::firstKey | ( | ) | const |
|
inline |
|
inline |
|
inline |
| float lmms::Microtuner::keyToFreq | ( | int | key, |
| int | userBaseNote ) const |
Return frequency for a given MIDI key, using the active mapping and scale.
| key | A MIDI key number ranging from 0 to 127. |
| userBaseNote | The "A4" or "440 Hz" equivalent "base note". |
| int lmms::Microtuner::lastKey | ( | ) | const |
|
overridevirtual |
Implements lmms::SerializingObject.
|
inlineoverridevirtual |
Implements lmms::SerializingObject.
| int lmms::Microtuner::octaveSize | ( | ) | const |
|
overridevirtual |
Implements lmms::SerializingObject.
|
inline |
|
protectedslot |
Update keymap name displayed in the microtuner scale list.
| index | Index of the keymap to update; update all keymaps if -1 or out of range. |
|
protectedslot |
Update scale name displayed in the microtuner scale list.
| index | Index of the scale to update; update all scales if -1 or out of range. |
|
private |
Enable microtuner (otherwise using 12-TET @440 Hz).
|
private |
|
private |
|
private |