Lines Matching refs:minDiff
522 int minDiff = 1, maxDiff = 0; in findPitchPeriodInRange() local
535 if(diff*bestPeriod < minDiff*period) { in findPitchPeriodInRange()
536 minDiff = diff; in findPitchPeriodInRange()
544 retMinDiff = minDiff/bestPeriod; in findPitchPeriodInRange()
553 int minDiff, in prevPeriodBetter() argument
557 if(minDiff == 0 || prevPeriod == 0) { in prevPeriodBetter()
561 if(maxDiff > minDiff*3) { in prevPeriodBetter()
565 if(minDiff*2 <= prevMinDiff*3) { in prevPeriodBetter()
570 if(minDiff <= prevMinDiff) { in prevPeriodBetter()
586 Integer minDiff = new Integer(0); in findPitchPeriod() local
595 … period = findPitchPeriodInRange(samples, position, minPeriod, maxPeriod, minDiff, maxDiff); in findPitchPeriod()
599 maxPeriod/skip, minDiff, maxDiff); in findPitchPeriod()
611 … period = findPitchPeriodInRange(samples, position, minP, maxP, minDiff, maxDiff); in findPitchPeriod()
614 … period = findPitchPeriodInRange(downSampleBuffer, 0, minP, maxP, minDiff, maxDiff); in findPitchPeriod()
618 if(prevPeriodBetter(period, minDiff, maxDiff, preferNewPeriod)) { in findPitchPeriod()
623 prevMinDiff = minDiff; in findPitchPeriod()