public override int BlankingLength(Sample sample1, Sample sample2) { // Clamp these because that's what's going to happen at output time anyway sample1.Clamp(); sample2.Clamp(); var distance = SampleUtil.DistanceBetweenSamples(sample1, sample2); if (distance < 0.01f) { // they're so close together, no blanking is needed. return(0); } else { return((int)Math.Ceiling(blankingLength * distance)); } }