How to change linear fader behaviour to logarithmic?

Discuss Lemur and share techniques.
grillo
Newbie
Posts: 10
Joined: 04 Oct 2013 09:16

Re: How to change linear fader behaviour to logarithmic?

Post 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
wul
Regular
Posts: 181
Joined: 10 Apr 2012 13:25

Re: How to change linear fader behaviour to logarithmic?

Post 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
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: How to change linear fader behaviour to logarithmic?

Post 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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
wul
Regular
Posts: 181
Joined: 10 Apr 2012 13:25

Re: How to change linear fader behaviour to logarithmic?

Post by wul »

Nice one macciza, yep thats much easier
Post Reply