echonest / jEN

the java client for The Echo Nest API
67 stars 43 forks source link

Takes lots of time to calculate BPM #8

Open AkshayChordiya opened 10 years ago

AkshayChordiya commented 10 years ago

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 commented 9 years ago

change your analysis time to 30000

AkshayChordiya commented 9 years ago

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