Hi, I am currently trying to make a rhythm game in Python using Librosa for beat detection. I looked at the csv file Librosa returned and noticed that the intervals between all the notes were approximately the same, and don't match the mp3 that I loaded in. Is the beat_track based on actual beats or a consistent rhythm that is played throughout the song? If there is a feature to measure spikes/beats (that fit the song), how would I get them? Thanks.
# Load the file
print('Loading ', input_file)
y, sr = librosa.load(input_file)
tempo, beat_frames = librosa.beat.beat_track(y=y, sr=sr)
print('Estimated tempo: {:.2f} beats per minute'.format(tempo))
# 4. Convert the frame indices of beat events into timestamps
beat_times = librosa.frames_to_time(beat_frames, sr=sr)