Codename LogoCodename Logo

funkin.backend.system.Conductor

APIWikiTools

Static variables

staticread onlybeatsPerMeasure:Float

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

staticread onlybpm:Float

Current BPM

staticbpmChangeMap:Array<BPMChangeEvent>

Array of all BPM changes that have been mapped.

staticread onlycrochet:Float

Current Crochet (time per beat), in milliseconds. It should be crotchet but ehhh, now it's there for backward compatibility.

View on GitHub

staticcurBeat:Int = 0

Current beat

View on GitHub

staticcurBeatFloat:Float = 0

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

staticread onlycurChange:BPMChangeEvent

Current bpmChangeMap

View on GitHub

staticcurChangeIndex:Int = 0

Current bpmChangeMap index

View on GitHub

staticcurMeasure:Int = 0

Current measure

View on GitHub

staticcurMeasureFloat:Float = 0

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

View on GitHub

staticcurStep:Int = 0

Current step

View on GitHub

staticcurStepFloat:Float = 0

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

staticread onlydenominator:Float

How much value notes to divide for beat (bottom or divisor number in time signature). Only for a convinient way to access divisor instead of multiply by steps per beat.

View on GitHub

staticinvalidEvents:Array<ChartEvent> = []

Array of all events that have been rejected by the Conductor.

staticread onlylastBeatChange:Float

Last beat from BPM Change

staticread onlylastMeasureChange:Float

Last measure from BPM Change

staticread onlylastStepChange:Float

Last step from BPM Change

View on GitHub

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

View on GitHub

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

View on GitHub

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

FlxSignals

View on GitHub

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

View on GitHub

staticonTimeSignatureChange:FlxTypedSignal<(Float, Float) ‑> Void> = new FlxTypedSignal()

View on GitHub

staticsongOffset:Float = 0

Offset of the song

staticsongPosition:Float

Current position of the song, in milliseconds.

staticread onlystartingBPM:Float

Starting BPM

staticread onlystepCrochet:Float

Current StepCrochet (time per step), in milliseconds.

staticread onlystepsPerBeat:Int

Number of steps per beat. Defaults to 4. Not a divisor number for time signature, it does the complete opposite. It's because CNE Conductor is based in sixteenth note instead of beat.

Static methods

View on GitHub

staticchangeBPM(bpm:Float = 100, beatsPerMeasure:Float = 4, stepsPerBeat:Int = 4):Void

View on GitHub

staticgetBeats(?every:BeatType, interval:Float, offset:Float = 0):Float

View on GitHub

staticgetBeatsInChangeIndex(beatTime:Float, index:Int = 0):Int

View on GitHub

staticgetBeatsInTime(beatTime:Float, from:Int = 0):Float

View on GitHub

staticgetMeasuresInChangeIndex(measureTime:Float, index:Int = 0):Int

View on GitHub

staticgetMeasuresInTime(measureTime:Float, from:Int = 0):Float

View on GitHub

staticgetStepsInChangeIndex(stepTime:Float, index:Int = 0):Int

View on GitHub

staticgetStepsInTime(stepTime:Float, from:Int = 0):Float

View on GitHub

staticgetStepsWithBPMInTime(stepTime:Float, index:Int, bpm:Float):Float

View on GitHub

staticgetStepsWithIndexInBPM(stepTime:Float, index:Int):Float

View on GitHub

staticgetTimeInBPM(time:Float):Float

View on GitHub

staticgetTimeInBeats(time:Float, from:Int = 0):Float

View on GitHub

staticgetTimeInChangeIndex(time:Float, index:Int = 0):Int

View on GitHub

staticgetTimeInSteps(time:Float, from:Int = 0):Float

View on GitHub

staticgetTimeWithBPMInSteps(time:Float, index:Int, bpm:Float):Float

View on GitHub

staticgetTimeWithIndexInBPM(time:Float, index:Int):Float

View on GitHub

staticinit():Void

View on GitHub

staticmapBPMChanges(song:ChartData):Void

Maps BPM changes from a song.

Parameters:

song

Song to map BPM changes from.