R
R
RionRedhand2019-12-12 09:21:32
Programming
RionRedhand, 2019-12-12 09:21:32

Determining the tempo of a song in realtime, is it possible?

There was such a question, is there such a technology (application) that can determine the tempo of any song in live time. That is, do not specify this tempo initially for each song, namely, that there be some kind of algorithm that determines this tempo live (at the moment).
What am I talking about specifically. There is, let's say, a song with bpm = 120, and it's like that, let's say, 2 minutes. And then the tempo gradually accelerates and becomes 160 bpm. And so one more minute, let's say. So, is there such an application that can indicate the tempo at a particular moment in a song?
If you do not know, then maybe there will suddenly be ideas on how this can be implemented by yourself? Do you know any existing techniques or algorithms for determining the pace?
I apologize if the question seems chaotic or stupid, but I was wildly interested in this topic :D

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
iBird Rose, 2019-12-12
@iiiBird

first link in google for "bpm detector github"
https://github.com/dlepaux/realtime-bpm-analyzer

G
Griboks, 2019-12-12
@Griboks

I don’t know the application, but the idea is quite simple - you can write it yourself.
1. Get the spectrum through the wavelet transform of the signal or any other transformation of the signal into frequencies.
2. Filter only low frequencies.
3. Find the most important frequency, multiply by 60 - this will be the bpm.

N
nikollo25, 2020-09-27
@nikollo25

If any DAW is installed on the PC, then by opening the track in the sequencer, you will see at what tempo your track sounds. The pace is very often floating, and it will not be possible to answer the question unambiguously. As a rule, bpm is packed into some range, from and to. But basically the tempo of most modern compositions does not change. Floating deals mainly with classical music. Most works are performed, recorded and played back between 30 and 240 BPM, more precise limits depending on the genre. However, it should be noted that the speed of the work also depends on the duration of the notes; thus, a whole note at 120 BPM sounds faster than a 32nd note at 2 BPM; the opposite is also true - a melody written in whole notes at a speed of 120 BPM sounds slower than a melody written by 32 notes at a speed of 4 BPM. Thus,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question