diff --git a/include/automatable_model.h b/include/automatable_model.h index a99457518..dc0caa650 100644 --- a/include/automatable_model.h +++ b/include/automatable_model.h @@ -118,10 +118,15 @@ public: { if( m_controllerConnection != NULL ) { - return minValue() + + const float v = minValue() + castValue( m_range * m_controllerConnection->currentValue( _frameOffset ) ); + if( m_step != 0 ) + { + return( roundf( v / m_step ) * m_step ); + } + return( v ); } return castValue( m_value );