isCorrectPitch method

  1. @override
bool isCorrectPitch(
  1. double userFrequency,
  2. YulmyeongNote detectPitch
)
override

Implementation

@override bool isCorrectPitch(double userFrequency, YulmyeongNote detectPitch) {
    List correctRange = getFrequencyRangeByOutputPitch(detectPitch);
    return (correctRange[0] <= userFrequency && userFrequency <= correctRange[1]);
}