TempogramOptions

Options & Configuration ยท AiDotNet.Audio.MusicAnalysis

Configuration options for the neural Tempogram tempo estimation model.

Inheritance: ModelOptions โ†’ TempogramOptions

For Beginners

A tempogram shows how the tempo (speed) of music changes over time. This model creates a detailed map of tempo, which is useful for analyzing songs with tempo changes, rubato (expressive timing), or live performances where the tempo varies.

How It Works

The Tempogram model computes a tempo representation over time using a neural approach to onset detection and autocorrelation-based tempo estimation. It provides both global tempo and tempo curves for music with changing tempos.

Constructors

Constructor Summary
TempogramOptions()

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 MaxBPM { get; set; } Gets or sets the maximum BPM to detect.
double MinBPM { get; set; } Gets or sets the minimum BPM to detect.
int FftSize { get; set; } Gets or sets the FFT window size.
int HopLength { get; set; } Gets or sets the hop length between frames.
int NumOnsetLayers { get; set; } Gets or sets the number of onset detector layers.
int NumTempoBins { get; set; } Gets or sets the number of tempo bins in the output.
int OnsetHiddenDim { get; set; } Gets or sets the hidden dimension of the onset detector.
int SampleRate { get; set; } Gets or sets the expected audio sample rate in Hz.
int TempoWindowFrames { get; set; } Gets or sets the tempo estimation window in frames.
string ModelPath { get; set; } Gets or sets the path to the ONNX model file.