LMMS
Loading...
Searching...
No Matches
lmms::Microtuner Class Reference

#include <Microtuner.h>

Inheritance diagram for lmms::Microtuner:
lmms::Model lmms::JournallingObject lmms::SerializingObject

Public Member Functions

 Microtuner ()
bool enabled () const
bool keyRangeImport () const
int currentScale () const
int currentKeymap () const
BoolModelenabledModel ()
ComboBoxModelscaleModel ()
ComboBoxModelkeymapModel ()
BoolModelkeyRangeImportModel ()
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
ModelparentModel () 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)
SerializingObjectHookhook ()

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)

Constructor & Destructor Documentation

◆ Microtuner()

lmms::Microtuner::Microtuner ( )
explicit

Member Function Documentation

◆ baseFreq()

float lmms::Microtuner::baseFreq ( ) const

◆ baseKey()

int lmms::Microtuner::baseKey ( ) const

◆ currentKeymap()

int lmms::Microtuner::currentKeymap ( ) const
inline

◆ currentScale()

int lmms::Microtuner::currentScale ( ) const
inline

◆ enabled()

bool lmms::Microtuner::enabled ( ) const
inline

◆ enabledModel()

BoolModel * lmms::Microtuner::enabledModel ( )
inline

◆ firstKey()

int lmms::Microtuner::firstKey ( ) const

◆ keymapModel()

ComboBoxModel * lmms::Microtuner::keymapModel ( )
inline

◆ keyRangeImport()

bool lmms::Microtuner::keyRangeImport ( ) const
inline

◆ keyRangeImportModel()

BoolModel * lmms::Microtuner::keyRangeImportModel ( )
inline

◆ keyToFreq()

float lmms::Microtuner::keyToFreq ( int key,
int userBaseNote ) const

Return frequency for a given MIDI key, using the active mapping and scale.

Parameters
keyA MIDI key number ranging from 0 to 127.
Returns
Frequency in Hz; 0 if key is out of range or not mapped.

◆ lastKey()

int lmms::Microtuner::lastKey ( ) const

◆ loadSettings()

void lmms::Microtuner::loadSettings ( const QDomElement & element)
overridevirtual

◆ nodeName()

QString lmms::Microtuner::nodeName ( void ) const
inlineoverridevirtual

◆ octaveSize()

int lmms::Microtuner::octaveSize ( ) const

◆ saveSettings()

void lmms::Microtuner::saveSettings ( QDomDocument & document,
QDomElement & element )
overridevirtual

◆ scaleModel()

ComboBoxModel * lmms::Microtuner::scaleModel ( )
inline

◆ updateKeymapList

void lmms::Microtuner::updateKeymapList ( int index)
protectedslot

Update keymap name displayed in the microtuner scale list.

Parameters
indexIndex of the keymap to update; update all keymaps if -1 or out of range.

◆ updateScaleList

void lmms::Microtuner::updateScaleList ( int index)
protectedslot

Update scale name displayed in the microtuner scale list.

Parameters
indexIndex of the scale to update; update all scales if -1 or out of range.

Member Data Documentation

◆ m_enabledModel

BoolModel lmms::Microtuner::m_enabledModel
private

Enable microtuner (otherwise using 12-TET @440 Hz).

◆ m_keymapModel

ComboBoxModel lmms::Microtuner::m_keymapModel
private

◆ m_keyRangeImportModel

BoolModel lmms::Microtuner::m_keyRangeImportModel
private

◆ m_scaleModel

ComboBoxModel lmms::Microtuner::m_scaleModel
private

The documentation for this class was generated from the following files: