BeatTracker<T>
Models & Types · AiDotNet.Audio.MusicAnalysis
Extracts beat and tempo information from audio.
Inheritance: MusicAnalysisBase<T> → BeatTracker<T>
For Beginners
The “beat” is what you tap your foot to when listening to music. This algorithm finds:
- Tempo: How fast the music is (measured in BPM - beats per minute)
- Beat times: Exactly when each beat occurs in the song
For example, a typical pop song is around 120 BPM, meaning there are 120 beats per minute (2 beats per second).
Usage:
How It Works
Beat tracking involves detecting the tempo (beats per minute) and the specific times when beats occur in the audio. This is fundamental for music synchronization and rhythm analysis.
Constructors
| Constructor | Summary |
|---|---|
BeatTracker(BeatTrackerOptions options) |
Creates a new beat tracker. |
Properties
| Property | Summary |
|---|---|
double MaxBPM { get; } |
Gets the maximum BPM for beat detection. |
double MinBPM { get; } |
Gets the minimum BPM for beat detection. |
Methods
| Method | Summary |
|---|---|
BeatTrackingResult<T> Track(Tensor<T> audio) |
Tracks beats in the audio. |
BeatTrackingResult<T> Track(Vector<T> audio) |
Tracks beats in the audio. |