Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to estimate the bpm of a file? #52

Closed
piem opened this issue Apr 26, 2016 · 3 comments
Closed

how to estimate the bpm of a file? #52

piem opened this issue Apr 26, 2016 · 3 comments
Labels

Comments

@piem
Copy link
Member

piem commented Apr 26, 2016

@xjefftang asked how to get the bpm of a file.

(He originally asked in #22 but couldn't open a new one, so opening a new bug for him here...)

@piem piem changed the title how to get extract the bpm from a file? how to estimate the bpm of a file? Apr 26, 2016
@piem
Copy link
Member Author

piem commented Apr 26, 2016

As I mentioned in #22, have a look at demo_bpm_extract.py.

    bpm_periods = 60./np.diffs(beats)
    bpm_median = np.mean(bpm_peridods)

@piem
Copy link
Member Author

piem commented Apr 26, 2016

@xjefftang then asked in #22 (comment) Did you find that median(bpms) generally is more accurate than mean(bpms)?

Yes, very much so. The mean is very likely to give you a tempo period that is not in the original population of periods.

best, Paul

@xjefftang
Copy link

Great. Thanks for all your help, Paul. Much appreciated!
Best,
Jeff

@piem piem added the question label May 20, 2016
@piem piem closed this as completed May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants