Static variables

@:value(100)staticbpm:Float = 100

The BPM (Beats Per Minute) of the current song.

@:value([])staticbpmChangeMap:Array<BPMChangeEvent> = []

@:value(((60 / bpm) * 1000))staticcrochet:Float = ((60 / bpm) * 1000)

Beats in milliseconds

@:value(0)staticoffset:Float = 0

@:value(10)staticsafeFrames:Int = 10

@:value(Math.floor((safeFrames / 60) * 1000))staticsafeZoneOffset:Float = Math.floor((safeFrames / 60) * 1000)

staticsongPosition:Float

The position of the song in milliseconds.

@:value(crochet / 4)staticstepCrochet:Float = crochet / 4

Steps in milliseconds

@:value(16)staticstepsPerSection:Int = 16

@:value([4, 4])statictimeScale:Array<Int> = [4, 4]

Static methods

staticinlinecalculateCrochet(bpm:Float):Float

@:value({ multi : 1 })staticchangeBPM(newBpm:Float, multi:Float = 1):Void

staticinlinegetBeat(time:Float):Float

Returns the current beat at the given position of the song.

Parameters:

time

the position of the song (in millseconds)

staticinlinegetStep(time:Float):Float

Returns the current step at the given position of the song.

Parameters:

time

the position of the song (in millseconds)

@:value({ songMultiplier : 1.0 })staticmapBPMChanges(song:SongData, songMultiplier:Float = 1.0):Void

@:value({ multi : 1 })staticrecalculateStuff(multi:Float = 1):Void

Constructor

new()