If findNthBeat(x, -1) returns x when we are on a beat, why does our loop start on x - (1 beat)?
At first I thought we were more than kEpsilon off the beat and increased it to .49 (just for testing purposes, of course) but that didn't work either...