minor tuning

This commit is contained in:
Harrison Deng 2017-07-16 23:39:23 -05:00
parent 7803d14fa0
commit f37c2693ae
2 changed files with 3 additions and 3 deletions

View File

@ -68,12 +68,12 @@ public class AudioAnalyzer {
umThresholdMultiplier = 1.5f;
bassBinBegin = 1;
bassBinEnd = 17;
bassBinEnd = 16;
UMBinBegin = 200;
UMBinEnd = 512;
bassThresholdCalcRange = thresholdRangeCalc(0.28f);
bassThresholdCalcRange = thresholdRangeCalc(0.3f);
UMThresholdCalcRange = thresholdRangeCalc(0.3f);
Gdx.app.debug("Read freq", String.valueOf(audioData.getFormat().getSampleRate()));

View File

@ -56,7 +56,7 @@ public class RhythmMapAlgorithm implements Runnable {
map.beginBuild();
for (int index = 0; index < bassPeaks.size; index++) {
if (bassPeaks.get(index) != 0 || UMPeaks.get(index) != 0) {
if (bassPeaks.get(index) >= avgBass) {
if (bassPeaks.get(index) >= avgBass*0.9f) {
//TODO basic void circle spawning
float warningTime = map.goBack((int) (windowPerSecond*1.5f))/windowPerSecond;
float endRadius = (bassPeaks.get(index)/bassMax)*(Polyjet.GAME_AREA_HEIGHT/4f);