Skip to content

Instantly share code, notes, and snippets.

@techpotatoes
Created August 4, 2021 09:04
Show Gist options
  • Save techpotatoes/262a038850c788adb3b9fdb2defb5747 to your computer and use it in GitHub Desktop.
Save techpotatoes/262a038850c788adb3b9fdb2defb5747 to your computer and use it in GitHub Desktop.
Usage of pitch_detector_dart
//Create a new pitch detector and set the sample rate and buffer size
final pitchDetectorDart = PitchDetector(44100, 2000);
//Call the get pitch method passing as a parameter the audio sample (List<double>) to detect a pitch
final result = pitchDetectorDart.getPitch(audioSample);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment