Fix an off-by-one in the undertone detection.