analyzer slightly better tuned
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user