eriansa wrote:ricardo wrote:A very interesting stuff is trying to mix it based on BPM (beats per minute, you need to calculate it).
Ive done something about that some time ago, it was 95% accurrated, but the 5% of failures make me quit.
One day i will complete that job

Care to share your beat-detection algo?
Not for now. Butthe idea behind (to detect beats on dance or high rythm 4x4 music) is not that difficult. Again, this may work more or less in 4/4 simple music.
The idea is that almost every note and peak will be more or less on time, so there will be a relation betwen the delays betwen peaks and the beats per minute.
If you measure that time betwen peaks, you will notice soon that they "grouped" more or less (that "groups" are usually multiples of the others).
Lets say i found that many peaks has timming of 125 ms, then the most probably is that the next group of common timmings will be around 250 ms and so on. This is not precise, but you can group together timmings that are 10% + or 10% - on the most usually founded.
Im trying to describe on easy words (and in a foreign language) soemthing that is a little more mathematical, but the idea behind is not that complicated. The idea is that you will find curves if you make a graphic reprsenting all the peaks that you find. Those curves, on the peak points will represent the 16th, 8th, 4th, etc. note times.
Until that point my code works almost perfect for hard rythm music (music with very noticed rythm).
But when i tried to make my own "click" (metronome) sounds on every 4th note... most time its acurrate, but sometimes a little desynchronization happends nd i had not time atm to resolve this problem, taht is small if you see it as maths, but not nice if you think it like music, because the ear or sense of rythm is very good and can notice any little failure on sync.
I hope i explain myself on a foreign language this conceptual idea.
*If anybody is interested on this matter i will gladly work together trying to find the best idea to achieve this thing. Its not common that people find a solution for this, in my own experience only one software was REALLY able to detect and syncro every 4th note. MixMeister is really big words if we talk about beat syncro.