pitch_detector_dart 0.0.7 pitch_detector_dart: ^0.0.7 copied to clipboard
A dart library for pitch detection. It implements the yin algorithm port from the tarsosDSP library by Joren Six.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add pitch_detector_dart
With Flutter:
$ flutter pub add pitch_detector_dart
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
pitch_detector_dart: ^0.0.7
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pitch_detector_dart/algorithm/pitch_algorithm.dart';
import 'package:pitch_detector_dart/algorithm/yin.dart';
import 'package:pitch_detector_dart/exceptions/invalid_audio_buffer_exception.dart';
import 'package:pitch_detector_dart/pitch_detector.dart';
import 'package:pitch_detector_dart/pitch_detector_result.dart';
import 'package:pitch_detector_dart/util/pcm_util_extensions.dart';