|
lmms
Cross-platform music production software
|
A class that simplify the constructor of FloatModel, with value [-1,1]. More...
#include <Sfxr.h>
Public Member Functions | |
| SfxrNegPosOneFloatModel (float val, Model *parent, const QString &displayName) | |
| void | loadSettings (const QDomElement &element, const QString &name=QString("value")) override |
| Loads settings of AutomatableModel from a DOM element. | |
| Public Member Functions inherited from lmms::FloatModel | |
| FloatModel (float val=0, float min=0, float max=0, float step=0, Model *parent=nullptr, const QString &displayName=QString(), bool defaultConstructed=false) | |
| float | getRoundedValue () const |
| int | getDigitCount () const |
| QString | displayValue (const float val) const override |
| Public Member Functions inherited from lmms::TypedAutomatableModel< float > | |
| AutomatableModel (const float val=0, const float min=0, const float max=0, const float step=0, Model *parent=nullptr, const QString &displayName=QString(), bool defaultConstructed=false) | |
| float | value (int frameOffset=0) const |
| float | initValue () const |
| float | minValue () const |
| float | maxValue () const |
| Public Member Functions inherited from lmms::AutomatableModel | |
| ~AutomatableModel () override | |
| virtual void | accept (ModelVisitor &v)=0 |
| virtual void | accept (ConstModelVisitor &v) const =0 |
| template<class Target> | |
| Target * | dynamicCast (bool doThrow=false) |
| Return this class casted to Target. | |
| template<class Target> | |
| const Target * | dynamicCast (bool doThrow=false) const |
| const overload, see overloaded function | |
| bool | isAutomated () const |
| bool | isAutomatedOrControlled () const |
| ControllerConnection * | controllerConnection () const |
| void | setControllerConnection (ControllerConnection *c) |
| template<class T> | |
| T | value (int frameOffset=0) const |
| float | controllerValue (int frameOffset) const |
| ValueBuffer * | valueBuffer () |
| Function that returns sample-exact data as a ValueBuffer. | |
| template<class T> | |
| T | initValue () const |
| bool | isAtInitValue () const |
| template<class T> | |
| T | minValue () const |
| template<class T> | |
| T | maxValue () const |
| template<class T> | |
| T | step () const |
| float | scaledValue (float value) const |
| Returns value scaled with the scale type and min/max values of this model. | |
| float | inverseScaledValue (float value) const |
| Returns value applied with the inverse of this model's scale type. | |
| void | setInitValue (const float value) |
| void | setValue (const float value, const bool isAutomated=false) |
| void | incValue (int steps) |
| float | range () const |
| void | setRange (const float min, const float max, const float step=1) |
| void | setScaleType (ScaleType sc) |
| void | setScaleLogarithmic (bool setToTrue=true) |
| bool | isScaleLogarithmic () const |
| void | setStep (const float step) |
| float | centerValue () const |
| void | setCenterValue (const float centerVal) |
| void | linkToModel (AutomatableModel *model) |
link this to model, copying the value from model | |
| size_t | countLinks () const |
| virtual void | saveSettings (QDomDocument &doc, QDomElement &element, const QString &name) |
| Saves settings of AutomatableModel into a DOM element. | |
| QString | nodeName () const override |
| bool | isLinked () const |
| bool | isValueChanged () |
| float | globalAutomationValueAt (const TimePos &time) |
| void | setStrictStepSize (const bool b) |
| bool | useControllerValue () const |
| 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 () |
Additional Inherited Members | |
| Public Types inherited from lmms::AutomatableModel | |
| enum class | ScaleType { Linear , Logarithmic , Decibel } |
| Public Slots inherited from lmms::AutomatableModel | |
| virtual void | reset () |
| void | unlink () |
| void | unlinkControllerConnection () |
| void | setUseControllerValue (bool b=true) |
| Signals inherited from lmms::AutomatableModel | |
| void | initValueChanged (float val) |
| void | destroyed (lmms::jo_id_t id) |
| Signals inherited from lmms::Model | |
| void | dataChanged () |
| void | dataUnchanged () |
| void | propertiesChanged () |
| Static Public Member Functions inherited from lmms::AutomatableModel | |
| template<class T> | |
| static T | castValue (const float v) |
| template<bool> | |
| static bool | castValue (const float v) |
| static void | incrementPeriodCounter () |
| static void | resetPeriodCounter () |
| Protected Member Functions inherited from lmms::AutomatableModel | |
| AutomatableModel (const float val=0, const float min=0, const float max=0, const float step=0, Model *parent=nullptr, const QString &displayName=QString(), bool defaultConstructed=false) | |
| float | fittedValue (float value) const |
| Protected Member Functions inherited from lmms::JournallingObject | |
| void | changeID (jo_id_t _id) |
A class that simplify the constructor of FloatModel, with value [-1,1].
|
inline |
|
inlineoverridevirtual |
Loads settings of AutomatableModel from a DOM element.
Loads settings (value, automation links and controller connections) of AutomatableModel from DOM element element using name as attribute/node name.
Reimplemented from lmms::AutomatableModel.