struct CCL::NormalizedValue

Helper to set/get normalized value respecting flags and parameter curve.

#include <iparameter.h>

struct NormalizedValue
{
    // fields

    IParameter* p;

    // construction

    NormalizedValue (IParameter* p);

    // methods

    double paramToDisplay (double v) const;
    double displayToParam (double v) const;
    double get () const;
    double getForValue (double v) const;
    void set (double v, bool update = false);
};