PitchDetectorBase<T>

Base Classes · AiDotNet.Audio.Pitch

Base class for pitch detection implementations.

Implements: IPitchDetector<T>

Known derived types: WorldPitchDetector<T>, YinPitchDetector<T>

For Beginners

for provides AI safety functionality. Default values follow the original paper settings.

Properties

Property Summary
double MaxPitch { get; set; }
double MinPitch { get; set; }
int SampleRate { get; set; }

Methods

Method Summary
IReadOnlyList<PitchFrame<T>> ExtractDetailedPitchContour(Tensor<T> audio, int hopSizeMs)
T MidiToPitch(double midiNote)
T[] ExtractPitchContour(Tensor<T> audio, int hopSizeMs)
ValueTuple<T, T>? DetectPitchWithConfidence(Tensor<T> audioFrame)
ValueTuple<bool, T> DetectPitch(Tensor<T> audioFrame)
double GetCentsDeviation(T pitchHz)
double PitchToMidi(T pitchHz)
string PitchToNoteName(T pitchHz)