Because
1. I wanted to stop at `duration` (but I could have done this with `AFrame.rms`)
2. I compute the sum of squares (not the sqrt) at each round, and the sqrt at the end only, and since sqrt cost quite a bit I think it's worth it (especially since rms is not that complicated...)