The formula for the 100dB stroke fader?

Discuss Lemur and share techniques.
jjlemur
Newbie
Posts: 15
Joined: 04 Jan 2012 17:10

The formula for the 100dB stroke fader?

Post by jjlemur »

Hi guys,

I am making a remote control surface for a digital mixing software.
I want to put "monitor"s for mixing faders' positions in dB as the real console shows, but I don't know what formula I can plug in.

I think it's some sort of Log function but I can not figure out or find the resources.
The fader is -90dB(infinite) to +10dB.

Also, if anybody knows how to make a formula for the panpot(bipolar), which shows L100 -0- R100. I don't need L/R but at least want to have it show 100 -0- 100.

Thank you so much.

JJ
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: The formula for the 100dB stroke fader?

Post by Phil999 »

for the volume fader I don't know, but the panner is easy:

-100+Pan.x*200
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: The formula for the 100dB stroke fader?

Post by Macciza »

Hi
This thread should cover what you need . . .
http://liine.net/forum/viewtopic.php?f= ... 1698#p1698

Cheers
MM
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]
jjlemur
Newbie
Posts: 15
Joined: 04 Jan 2012 17:10

Re: The formula for the 100dB stroke fader?

Post by jjlemur »

Wow, amazing! Thanks MM.

20*(log(x*127/108))*6/3.241 is great.

But I am wondering if this can be slightly altered so it shows from inf.(-90dB) to +10dB.
Do you know? I tried some, but never reached the correct one...

Thanks!

JJ
jjlemur
Newbie
Posts: 15
Joined: 04 Jan 2012 17:10

Re: The formula for the 100dB stroke fader?

Post by jjlemur »

Hey Phil999,

Thanks to you too! I needed to know that. It looks great.
But do you know if it can be 100 to the both side L/R? Not like -100 -0- 100?

Or I wonder if we can put texts before those values, like "L"100 and "R"100

Thanks so much!

JJ
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: The formula for the 100dB stroke fader?

Post by Phil999 »

jjlemur wrote: But do you know if it can be 100 to the both side L/R? Not like -100 -0- 100?
I'm sure it can be done, but I don't know yet how to express it. You need to multiply with -1 if the value is negative.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: The formula for the 100dB stroke fader?

Post by Macciza »

Phil999 wrote: You need to multiply with -1 if the value is negative.
Or use abs() - to give you the unsigned version on the number

MM
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]
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: The formula for the 100dB stroke fader?

Post by Phil999 »

yes! That's it.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
jjlemur
Newbie
Posts: 15
Joined: 04 Jan 2012 17:10

Re: The formula for the 100dB stroke fader?

Post by jjlemur »

Thanks guys!

I tried "()", but it doesn't change anything. Still I have -100 at Right side.

I put like "(100-pan.x*200)" in the item of "value=".

Am I doing something wrong way or misunderstood?

I really appreciate your help!

JJ
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: The formula for the 100dB stroke fader?

Post by Phil999 »

jjlemur wrote: I put like "(100-pan.x*200)" in the item of "value=".
It must start with -100, so that it will display 0 in the center position when multiplied with 200.

-100+pan.x*200

to get absolute values (values >=0), write

abs(-100+pan.x*200)
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Post Reply