Codename LogoCodename Logo

funkin.backend.system.Conductor

APIWiki

Static variables

View in GitHub

@:value(4)staticbeatsPerMeasure:Float = 4

Number of beats per mesure (top number in time signature). Defaults to 4.

View in GitHub

@:value(100)staticbpm:Float = 100

Current BPM

View in GitHub

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

Array of all BPM changes that have been mapped.

View in GitHub

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

Current Crochet (time per beat), in milliseconds.

View in GitHub

@:value(0)staticcurBeat:Int = 0

Current beat

View in GitHub

@:value(0)staticcurBeatFloat:Float = 0

Current beat, as a Float (ex: 1.24, instead of 1)

View in GitHub

@:value(0)staticcurMeasure:Int = 0

Current measure

View in GitHub

@:value(0)staticcurMeasureFloat:Float = 0

Current measure, as a Float (ex: 1.24, instead of 1)

View in GitHub

@:value(0)staticcurStep:Int = 0

Current step

View in GitHub

@:value(0)staticcurStepFloat:Float = 0

Current step, as a Float (ex: 4.94, instead of 4)

View in GitHub

@:value(new FlxTypedSignal())staticonBPMChange:FlxTypedSignal<Float ‑> Void> = new FlxTypedSignal()

View in GitHub

@:value(new FlxTypedSignal())staticonBeatHit:FlxTypedSignal<Int ‑> Void> = new FlxTypedSignal()

View in GitHub

@:value(new FlxTypedSignal())staticonMeasureHit:FlxTypedSignal<Int ‑> Void> = new FlxTypedSignal()

FlxSignals

View in GitHub

@:value(new FlxTypedSignal())staticonStepHit:FlxTypedSignal<Int ‑> Void> = new FlxTypedSignal()

View in GitHub

@:value(0)staticsongOffset:Float = 0

Offset of the song

staticsongPosition:Float

Current position of the song, in milliseconds.

View in GitHub

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

Current StepCrochet (time per step), in milliseconds.

View in GitHub

@:value(4)staticstepsPerBeat:Float = 4

Number of steps per beat (bottom number in time signature). Defaults to 4.

Static methods

View in GitHub

@:value({ stepsPerBeat : 4, beatsPerMeasure : 4 })staticchangeBPM(newBpm:Float, beatsPerMeasure:Float = 4, stepsPerBeat:Float = 4):Void

View in GitHub

staticgetStepForTime(time:Float):Float

View in GitHub

staticgetTimeForStep(step:Float):Float

View in GitHub

staticinit():Void

View in GitHub

staticmapBPMChanges(song:ChartData):Void

Maps BPM changes from a song.

Parameters:

song

Song to map BPM changes from.