float bpms

This commit is contained in:
Yoshman29
2022-10-13 23:23:10 +02:00
parent 53e82bfcd8
commit 3f7f5c8593
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1 +1 @@
432
434
+1 -1
View File
@@ -6,7 +6,7 @@ typedef SwagSection =
var lengthInSteps:Int;
var typeOfSection:Int;
var mustHitSection:Bool;
var bpm:Int;
var bpm:Float;
var changeBPM:Bool;
var altAnim:Bool;
}
+3 -3
View File
@@ -83,7 +83,7 @@ class ChartingState extends MusicBeatState
var characterList:Array<String>;
var tempBpm:Int = 0;
var tempBpm:Float = 0;
var vocals:FlxSound;
@@ -465,7 +465,7 @@ class ChartingState extends MusicBeatState
}*/
function sectionStartTime():Float
{
var daBPM:Int = _song.bpm;
var daBPM:Float = _song.bpm;
var daPos:Float = 0;
for (i in 0...curSection)
{
@@ -840,7 +840,7 @@ class ChartingState extends MusicBeatState
else
{
// get last bpm
var daBPM:Int = _song.bpm;
var daBPM:Float = _song.bpm;
for (i in 0...curSection)
if (_song.notes[i].changeBPM)
daBPM = _song.notes[i].bpm;
+4 -4
View File
@@ -11,7 +11,7 @@ typedef BPMChangeEvent =
{
var stepTime:Int;
var songTime:Float;
var bpm:Int;
var bpm:Float;
}
class Conductor
@@ -19,7 +19,7 @@ class Conductor
/**
* Current BPM
*/
public static var bpm:Int = 100;
public static var bpm:Float = 100;
/**
* Current Crochet (time per beat), in milliseconds.
@@ -58,7 +58,7 @@ class Conductor
{
bpmChangeMap = [];
var curBPM:Int = song.bpm;
var curBPM:Float = song.bpm;
var totalSteps:Int = 0;
var totalPos:Float = 0;
for (i in 0...song.notes.length)
@@ -81,7 +81,7 @@ class Conductor
trace("new BPM map BUDDY " + bpmChangeMap);
}
public static function changeBPM(newBpm:Int)
public static function changeBPM(newBpm:Float)
{
bpm = newBpm;
+1 -1
View File
@@ -11,7 +11,7 @@ typedef SwagSong =
{
var song:String;
var notes:Array<SwagSection>;
var bpm:Int;
var bpm:Float;
var needsVoices:Bool;
var speed:Float;
var stage:String;