although essentia seems to have python bindings, and it seems easy enough to just get the loudness after the fact from the regression tests https://github.com/MTG/essentia/blob/master/test/src/unittests/rhythm/test_singlebeatloudness.py
also for some god forsaken reason math.pow isn't exposed to udon