fixed if statement checking on timings
added a metronome that fires on certain frames