Reaper Normalized floating point Vu meter OSC data to db function

HI, i started today with O S C,
I’m trying to make an input widget where i can see the VU meter value from Reaper,
in the meantime i’ve found this function over the Reaper forum where they translate FP values to log db scale like this:
math.exp( Value * 0.115129254)
but i’m not actually sure where i should write that function in O S C.

Thanks for your help

Using a custom module could well do the job, here is an example that should get you started. The actual maths are up to you and must be written in plain javascript here.

OK! thanks so much! … i need to study JS a bit :wink: