Convert Decibles to Gain value

Discuss Live-ready controllers other than Push.
Post Reply
rblythe
Posts: 1
Joined: Mon Mar 27, 2023 6:07 pm

Convert Decibles to Gain value

Post by rblythe » Mon Mar 27, 2023 6:16 pm

I am trying to create controller commands to increase or decrease a specific track volume in 1 or -1 db increments. I have everything working but I cannot find a way to convert decibels to an appropriate Ableton gain value. I've tried the formulas suggested on this page:

https://stackoverflow.com/questions/226 ... h-decibels

but it is still producing the wrong values. Any help would be greatly appreciated!

randi
Posts: 105
Joined: Thu Apr 03, 2014 4:03 am
Contact:

Re: Convert Decibles to Gain value

Post by randi » Wed Mar 29, 2023 12:16 pm

could you describe how and what are you trying to achieve?
usually one would just use

Code: Select all

self.song().view.selected_track.mixer_device.volume

Post Reply