tuning and adjustments

This commit is contained in:
Harrison Deng 2017-07-15 00:48:01 -05:00
parent da494d22a3
commit 1fce870503
4 changed files with 4 additions and 7 deletions

View File

@ -64,7 +64,7 @@ public class AudioAnalyzer {
int tasksDone = 0;
int totalTasks = audioData.getSampleCount()/audioData.getReadWindowSize();
bassThresholdMultiplier = 1.7f;
bassThresholdMultiplier = 1.5f;
umThresholdMultiplier = 1.5f;
bassBinBegin = 1;

View File

@ -1,8 +1,6 @@
package zero1hd.polyjet.audio.map;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.utils.Array;
import zero1hd.polyjet.audio.AudioData;
@ -96,7 +94,6 @@ public class GamePlayMap {
playableClip.readIndexUpdate();
if (index != playableClip.getReadIndex()) {
index = playableClip.getReadIndex();
Gdx.app.debug("GPM", "index: " + index);
return nextEntity(false);
} else {
return null;

View File

@ -57,7 +57,7 @@ public class RhythmMapAlgorithm implements Runnable {
for (int index = 0; index < bassPeaks.size; index++) {
if (bassPeaks.get(index) != 0 || UMPeaks.get(index) != 0) {
int warningTime = (int) ((3/speedMod)*windowPerSecond);
if ((index+warningTime < bassPeaks.size) && bassPeaks.get(index + warningTime) >= avgBass) {
if ((index+warningTime < bassPeaks.size) && bassPeaks.get(index + warningTime) != 0) {
//TODO basic void circle spawning
float endRadius = (bassPeaks.get(index + warningTime)/bassMax)*(Polyjet.GAME_AREA_HEIGHT/2f);
@ -65,7 +65,7 @@ public class RhythmMapAlgorithm implements Runnable {
endRadius,
rand.nextFloat()*Polyjet.GAME_AREA_WIDTH,
rand.nextFloat()*Polyjet.GAME_AREA_HEIGHT,
endRadius/(avgSPB*0.5f),
endRadius/(avgSPB*0.6f),
3f/speedMod
);
}