Forums > Max For Live

"Linear-to-GUI" live value -to- understandable dB or amplitude

September 28, 2012 | 10:21 am

Hi

I would like to make a max for live device that can offset multiple live tracks volumes at once, given a dB value.

I managed to get the ids of the tracks I want the volume changed. I currently use a live.observer to get the current volume.

The problem is that live.observer gives me a "Linear-to-GUI" value (as described in the Live Object Model reference).
I can’t figure out how to convert this "Linear-to-GUI" value of a volume to an amplitude or a dB value that I can do my math on…
It seems that from 1. to 0.85 it goes from +6dB to 0dB and from 0.85 to 0. it goes from 0dB to -70dB

But even splitting those two cases appart I cant figure out how to get an amplitude or a dB value.

Any thougths?

G.

PS : I don’t paste my patch since the helpfile of live.observer is pretty much it !


September 28, 2012 | 11:09 am

I had the same problem when I wanted to make a fader in Lemur that would reflect, using a script, the fader’s value as dB. I tried this expression, found on the Liine forum : 20*(log(x*127/108))*6/3.241. It works for the upper part of the fader, but quickly drifts away from the values as readable in live. I had a mail conversation with Ableton because I supposed that at least a programmer, if not the support guys, could give me an answer, but they never came back to me. You should read this related topic : https://forum.ableton.com/viewtopic.php?f=1&t=182375&p=1418659&hilit=lemur+right+expression.


September 28, 2012 | 12:37 pm

Seems like a tough problem ! I’ll keep looking at the topic you mentioned in case there’s something there someday.
Thanks for the formula, but without the lower part of the fader, there’s not so much we can do with it.

Until then I think I will try to conceive my patch and its use another way.

Thank you very much for your time.


Viewing 3 posts - 1 through 3 (of 3 total)