@orange the magnitude function can just read a part of the buffer, you don’t need to read it entirely.
But I would create a reference buffer ˋBuffer.referTo()` for the length I need in the timer CB
Both solutions are valid
Also, you might not want the value to erratically change every 30ms so you’ll need a counter, or a second timer just for this
A global cable could do it as well