progress on analysis page
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user