max beat tracking demo using Duration