decimal bpm for real!!

This commit is contained in:
M&M
2021-05-28 19:28:39 -07:00
parent 993360d618
commit 4d3914228f
4 changed files with 10 additions and 10 deletions

View File

@ -12,12 +12,12 @@ typedef BPMChangeEvent =
{
var stepTime:Int;
var songTime:Float;
var bpm:Int;
var bpm:Float;
}
class Conductor
{
public static var bpm:Int = 100;
public static var bpm:Float = 100;
public static var crochet:Float = ((60 / bpm) * 1000); // beats in milliseconds
public static var stepCrochet:Float = crochet / 4; // steps in milliseconds
public static var songPosition:Float;
@ -45,7 +45,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)
@ -68,7 +68,7 @@ class Conductor
trace("new BPM map BUDDY " + bpmChangeMap);
}
public static function changeBPM(newBpm:Int)
public static function changeBPM(newBpm:Float)
{
bpm = newBpm;