fixed if statement for returning chordDuration in elapse