isOnPitch method
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}");
}
}