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

Takes lots of time to calculate BPM #8

Open
AkshayChordiya opened this issue May 11, 2014 · 2 comments
Open

Takes lots of time to calculate BPM #8

AkshayChordiya opened this issue May 11, 2014 · 2 comments

Comments

@AkshayChordiya
Copy link

Hi,

Thanks for this library, it helped alot in music analysis. But the problem is it takes a lot of time to calculate Temp aka BPM of song.

I don't know but it takes very much time, can this be improved by reducing the waitForAnalysis timeout ?
Here is my code below to calculate Tempo from Echonest

EchoNestAPI en = new EchoNestAPI(Constant.BPM.ECHO_NEST_API);
Track track = en.uploadTrack(new File(args[0]));
track.waitForAnalysis(10000);
if (track.getStatus() == Track.AnalysisStatus.COMPLETE) 
     System.out.println("Tempo = " + track.getTempo());
@warjohn123
Copy link

change your analysis time to 30000

@AkshayChordiya
Copy link
Author

@warjohn123
Thank you for the help.
I'll try with that value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants