changed vert to the glsl tutorial one
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user