MusicStructureAnalyzerOptions

Options & Configuration · AiDotNet.Audio.MusicAnalysis

Configuration options for the Music Structure Analyzer model.

Inheritance: ModelOptions → MusicStructureAnalyzerOptions

For Beginners

This model listens to a song and identifies its sections—where the verse begins, where the chorus kicks in, and where the bridge or outro happens. It’s like creating an automatic table of contents for a song.

How It Works

The Music Structure Analyzer segments songs into structural sections (intro, verse, chorus, bridge, outro) using a neural network trained on annotated music datasets. It combines self-similarity matrix features with a segmentation network.

Constructors

Constructor Summary
MusicStructureAnalyzerOptions()

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.
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 NumAttentionHeads { get; set; } Gets or sets the number of attention heads.
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 NumSections { get; set; } Gets or sets the number of section labels.
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.
string[] SectionLabels { get; set; } Gets or sets the section label names.