progress on analysis page

This commit is contained in:
2017-07-10 16:01:11 -05:00
parent cf0114bac3
commit 1f84a68ae5
6 changed files with 66 additions and 16 deletions

View File

@@ -213,7 +213,7 @@ public class AudioAnalyzer {
}
avgBPS = -1f;
int beats = 0;
float beats = 0;
if (avgBPS == -1 && bassPeaks.get(i) != 0) {
//this should actually equal to 1;
avgBPS = 0;
@@ -225,8 +225,8 @@ public class AudioAnalyzer {
}
//then we minus one from the beats so it actually works out
avgBPS -= UMPrunned.size-lastID;
avgBPS /= beats;
avgBPS *= secondsPerFrame;
avgBPS = beats/avgBPS;
}