audacity / audacity

Audio Editor
https://wiki.audacityteam.org/wiki/For_Developers
Other
11.77k stars 2.21k forks source link

Automatic beat detection: detects wrong tempo for generated rhythm track. #6285

Open DavidBailes opened 2 months ago

DavidBailes commented 2 months ago

Steps to reproduce

  1. Generate a rhythm track with tempo 60, beats per bar 4, and number of bars 8.
  2. Export to a wav file.
  3. Set the music imports option to ask me each time.
  4. In a new project, import the file.

Expected behavior

A music import dialog, saying that file had been detected to be 60 bpm

Actual behavior

Detected 90bpm:

image

Audacity Version

3.5.1

Operating system

Windows, macOS

DavidBailes commented 2 months ago

Did some further tests, keeping beats per bar at 4, and number of bars 8. The incorrect tempo seems to be detected if the tempo of the generated rhythm track is 72 bpm or below. @saintmatthieu . Is this behaviour expected, or is it a bug?

dozzzzer commented 1 month ago

On Windows, the tempo is detected as 90 bpm:

image

On macOS though, the same rhythm track is detected as 120:

image