diff options
Diffstat (limited to 'src/controllinpotmeter.cpp')
-rw-r--r-- | src/controllinpotmeter.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/controllinpotmeter.cpp b/src/controllinpotmeter.cpp new file mode 100644 index 0000000000..475e880c3b --- /dev/null +++ b/src/controllinpotmeter.cpp @@ -0,0 +1,15 @@ +#include "controllinpotmeter.h" +#include "defs.h" + +// This control has a linear link between the m_dValue and the Midi Value +// limitation: m_dMaxValue represents the midi value of 128 and is never reached +ControlLinPotmeter::ControlLinPotmeter(ConfigKey key, double dMinValue, double dMaxValue) : + ControlPotmeter(key, dMinValue, dMaxValue) { + if (m_pControl) { + ControlNumericBehavior* pOldBehavior = m_pControl->setBehavior( + new ControlLinPotmeterBehavior(dMinValue, dMaxValue)); + delete pOldBehavior; + } +} + + |