[linux-audio-dev] Some help with my BPM algorithm?
Jay Dolan
jasonthomasdolan at yahoo.com
Mon Mar 22 16:45:54 UTC 2004
--- Simon Jenkins <sjenkins at blueyonder.co.uk> wrote:
> Try this?
> (I haven't).
>
> Simon Jenkins
> (Bristol, UK)
>
> if(k == g_minBpm || diff < lowestDiffFound){
> bpm = k;
> lowestDiffFound = diff;
> }
>
Definitely closer! I'm embarassed to admit how long
I've looked at this code and didn't see that I was
initializing lowestDiffFound (was previousDiff) to 0,
doh!
It's now returning 120.0 (g_minBpm) for every file,
tho. So there's still a problem somewhere. Perhaps
in phaseShift? I've re-attached the improved version.
Thank you for your help.
=====
Jay Dolan
Software Engineer, Systems Analyst
Windmill Cycles, Inc.
508.999.4000
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bpm.c
Type: application/octet-stream
Size: 4631 bytes
Desc: bpm.c
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20040322/20d5de91/attachment.obj>
More information about the Linux-audio-dev
mailing list