MelodyExtractorOptions

Options & Configuration · AiDotNet.Audio.MusicAnalysis

Configuration options for the neural Melody Extraction model.

Inheritance: ModelOptions → MelodyExtractorOptions

For Beginners

When you listen to a song, you can usually hum along to the main melody even though many instruments are playing. This model does the same thing—it finds and extracts just the main tune from a full song, ignoring background harmonies and rhythms.

How It Works

The Melody Extractor identifies the primary melodic line from a polyphonic audio recording using a neural network. Unlike pitch detection (which finds any pitch), melody extraction specifically tracks the dominant melody even when other instruments are playing simultaneously.

Constructors

Constructor Summary
MelodyExtractorOptions()

Properties

Property Summary
OnnxModelOptions OnnxOptions { get; set; } Gets or sets the ONNX runtime options.
double DropoutRate { get; set; } Gets or sets the dropout rate.
double LearningRate { get; set; } Gets or sets the learning rate.
double MaxFrequency { get; set; } Gets or sets the maximum frequency in Hz.
double MinFrequency { get; set; } Gets or sets the minimum frequency in Hz.
double VoicingThreshold { get; set; } Gets or sets the voicing threshold.
int FftSize { get; set; } Gets or sets the FFT window size.
int HiddenDim { get; set; } Gets or sets the hidden dimension.
int HopLength { get; set; } Gets or sets the hop length between frames.
int NumLayers { get; set; } Gets or sets the number of encoder layers.
int NumMels { get; set; } Gets or sets the number of mel filterbank channels.
int NumPitchBins { get; set; } Gets or sets the number of pitch bins in the output.
int SampleRate { get; set; } Gets or sets the expected audio sample rate in Hz.
string ModelPath { get; set; } Gets or sets the path to the ONNX model file.