Modification of simple beat tracking algorithm