The function you're looking for in the code is updatePitch() function and it constantly loop by this last line of code:
window.requestAnimationFrame( updatePitch );
the number of callback for requestAnimationFrame() is 60 times per second. For more information you can check this out.
Hope this helps !