analyzer slightly better tuned

This commit is contained in:
2017-07-13 00:40:11 -05:00
parent 9d8d34662d
commit 8cb2f4ac1b
5 changed files with 11 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ 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;
@@ -94,7 +95,7 @@ public class GamePlayMap {
public EntitySpawnInfo safeNextEntity() {
playableClip.readIndexUpdate();
if (index != playableClip.getReadIndex()) {
index = playableClip.getReadIndex();
index = Math.max(0, playableClip.getReadIndex()-1);
return nextEntity(false);
} else {
return null;

View File

@@ -69,7 +69,7 @@ public class RhythmMapAlgorithm implements Runnable {
map.addToMap(Entities.BAR,
MathUtils.round(3),
(1.5f/avgBPS)*speedMod);
(8f/avgBPS)*speedMod);
} else {
if (UMPeaks.get(index) != 0) {
// map.addToMap(Entities.BAR,