Forums > Max For Live

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

Sep 28 2012 | 10:21 am


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 to get the current volume.

The problem is that 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?


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

Sep 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 :

Sep 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.

Aug 26 2015 | 10:40 am

Hi Guillaume, I come back to this old thread, did you see this : ?
although nearly three years later we sill wait a clear answer from Ableton…

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

Forums > Max For Live