isOnPitch method

  1. @override
Future<bool> isOnPitch(
  1. double toleranceCents,
  2. double minPrecision
)
override

Implementation

@override
Future<bool> isOnPitch(double toleranceCents, double minPrecision) async {
  try {
    return await _methodChannel.invokeMethod('isOnPitch', {
      'toleranceCents': toleranceCents,
      'minPrecision': minPrecision,
    });
  } on PlatformException catch (e) {
    throw Exception("Failed to check pitch: ${e.message}");
  }
}