Page 2 of 2
Re: How to change linear fader behaviour to logarithmic?
Posted: 07 Oct 2013 08:38
by grillo
wul wrote:LogFader.zip
Not sure if this is right or not , it certainly appears to act like a log pot you can also scale its max and min values
Thank you very much Wu!!
I hoped that it was more easy to develop this script. I can see it s not the case.
I m surprised there is no basic "ready" script in Lemur to easily change the scale of a Knob or a fader with log or exp scale.
Great job anyway
G
Re: How to change linear fader behaviour to logarithmic?
Posted: 07 Oct 2013 09:02
by wul
Should be easy enough to reverse the action , it can be made easier without the script and min max constants by putting the a?b:c logic in the value field of the fader
Re: How to change linear fader behaviour to logarithmic?
Posted: 07 Oct 2013 11:54
by Macciza
Hi All
I should pull some bits out of my test project and post them but here are some basics
Exponential fader can be done by creating a variable under the Fader xExp = pow(x, 2) then set its midi CC and scale 0 to 127.
For a basic log you could do the same ie xLog = pow(x,0.5) and similarly scale 0 to127
You can also invert the first one pretty by doing 1-pow(x-1, 2) to reflect it across x=y i.e. linear
You can also increase or decrease the numbers as needed to get different slopes . . .
Ultimately I guess you could use the log/log10 functions to get the values for particular ranges of output perhaps . . .
Hope that helps....
Also re the Usine request - Have a look at Usine H and the Granulator patch - It also has a section that lets you alter its response to incoming midi
Re: How to change linear fader behaviour to logarithmic?
Posted: 07 Oct 2013 15:46
by wul
Nice one macciza, yep thats much easier