I'm writing an app using Web Audio for playing different regions of an audio track as loops. Say I have one region between 1s and 4s and another between 10s and 14s. I want to user to live be able to jump between the loops.
How is this best done with best precision? What's the best practice for getting current time in an interval?