changed vert to the glsl tutorial one

This commit is contained in:
2017-07-17 23:52:58 -05:00
parent 686d6c3e9b
commit 97faafa327
7 changed files with 56 additions and 50 deletions

View File

@@ -73,7 +73,7 @@ public class AudioAnalyzer {
UMBinBegin = 200;
UMBinEnd = 512;
bassThresholdCalcRange = thresholdRangeCalc(0.3f);
bassThresholdCalcRange = thresholdRangeCalc(0.28f);
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*0.9f) {
if (bassPeaks.get(index) >= avgBass) {
//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);
@@ -67,7 +67,6 @@ public class RhythmMapAlgorithm implements Runnable {
endRadius/(avgSPB*0.7f),
warningTime
);
map.resetIndex();
}
if (UMPeaks.get(index) >= avgUM) {