minor tuning
This commit is contained in:
parent
7803d14fa0
commit
f37c2693ae
@ -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()));
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user