Well, I can calculate the skew or the midpoint form skew, but I miserably failed to apply it to my value...

Sure I'm not far though

Would you (or anyone else of course) replace the question marks, please?

```
var length = knob.get("max") - knob.get("min");
var normalizedValue = (value - knob.get("min")) / length;
var skew = Math.log(0.5) / Math.log((knob.data.midPoint - knob.get("min")) / length);
var midPoint = Math.pow(2.0, -1.0 / skew) * length + knob.get("min");
var proportion = Math.pow(normalizedValue, skew);
knob.setValue(???);
```

]]>Well, I can calculate the skew or the midpoint form skew, but I miserably failed to apply it to my value...

Sure I'm not far though

Would you (or anyone else of course) replace the question marks, please?

```
var length = knob.get("max") - knob.get("min");
var normalizedValue = (value - knob.get("min")) / length;
var skew = Math.log(0.5) / Math.log((knob.data.midPoint - knob.get("min")) / length);
var midPoint = Math.pow(2.0, -1.0 / skew) * length + knob.get("min");
var proportion = Math.pow(normalizedValue, skew);
knob.setValue(???);
```

]]>`knob.setValue(@Christoph-Hart);`

]]>- Add a knob with an empty image as filmstrip
- Add the panel that draws your vector knob behind the actual knob.
- Implement the paint routine. Use
`Knob.getValueNormalised()`

which tucks away all this logarithmic stuff and gives you a normalised linear value from 0...1 that you can use to draw the value on your panel. - Add a timer callback that grabs the value and repaints it.
- This way you get the other nice things from the Knob / Slider widget (shift click to enter a value, double click to return, adjustable mouse sensitivity etc)

I am using this trick in HEXERACT for the vector knobs:

]]>I really think adjusting from the skew factor would be better in my case.

It's already what Hise is using, isn't it? So what are the maths after calculating the skew?

Also, I found some methods in Juce for mapping the values from a skew factor or mid-point, maybe it would be cool to have it in Hise what do you think?

]]>