Help with logarithmic scaling

ironside's icon

Hi everyone,

I need some help with scaling and logarithmic numbers… Everyone's favourite topic, I'm sure. This is a moment when I realise how low my IQ is!

OK… So, I’m controlling Resolume Arena with OSC in Max. I have essentially a sampler type set up going on. In Max I have a ‘root’ pitch class like with a normal sampler, and I’m transposing from that to get the correct playback speed - using expr pow(2, $f1/1200). (i.e 1 octave lower is 0.5; 1 higher is 2. etc)

That’s all fine, but the resolume OSC input maps the values 0. 1. to playback speed 0.-10!

Therefore, when my max output is 0.25, the Resolume speed is 1.
When my max output is 0.5, the Resolume speed is 3.16
And:
1. = 10.
0.125 = 0.32

And so on.

This is where I regret dropping maths at school. If anyone has any help it would be much appreciated!

Roman Thilenius's icon


if something could be a polynomial you can try this:

but more likely this kind of stuff is log10, log20, log90, srqt in relation to the other side. plus some linear scaling, which makes it difficult to guess a function.

Roman Thilenius's icon


"0.25, the Resolume speed is 1. "


ms vs frames maybe?