Conductor
| Kind | class |
| Package | backend |
| Full name | backend.Conductor |
| Source | source/backend/Conductor.hx |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
bpm | Float | yes | 100 | — |
crochet | Float | yes | ((60 / bpm) * 1000) | — |
stepCrochet | Float | yes | crochet / 4 | — |
songPosition | Float | yes | 0 | — |
offset | Float | yes | 0 | — |
safeZoneOffset | Float | yes | (ClientPrefs.safeFrames / 60) * 1000 | public static var safeFrames:Int = 10; credits to duskiewhy for making this |
timeScale | Float | yes | Conductor.safeZoneOffset / 180 | — |
ROWS_PER_BEAT | — | yes | 48 | — |
BEATS_PER_MEASURE | — | yes | 4 | — |
ROWS_PER_MEASURE | — | yes | ROWS_PER_BEAT * BEATS_PER_MEASURE | — |
MAX_NOTE_ROW | — | yes | 1 << 30 | — |
bpmChangeMap | Array<BPMChangeEvent> | yes | [] | — |
Public methods
beatToRow
static inline function beatToRow(beat:Float):Int
| Parameter | Type | Default |
|---|---|---|
beat | Float | — |
rowToBeat
static inline function rowToBeat(row:Int):Float
| Parameter | Type | Default |
|---|---|---|
row | Int | — |
secsToRow
static inline function secsToRow(sex:Float):Int
| Parameter | Type | Default |
|---|---|---|
sex | Float | — |
new (constructor)
function new()
recalculateTimings
static function recalculateTimings()
judgeNote
static function judgeNote(note:Note, diff:Float = 0, botplay:Bool = false, missedNote:Bool = false):Rating // die
| Parameter | Type | Default |
|---|---|---|
note | Note | — |
diff (optional) | Float | 0 |
botplay (optional) | Bool | false |
missedNote (optional) | Bool | false |
getCrotchetAtTime
static function getCrotchetAtTime(time:Float)
| Parameter | Type | Default |
|---|---|---|
time | Float | — |
getBPMFromSeconds
static function getBPMFromSeconds(time:Float)
| Parameter | Type | Default |
|---|---|---|
time | Float | — |
getBPMFromStep
static function getBPMFromStep(step:Float)
| Parameter | Type | Default |
|---|---|---|
step | Float | — |
beatToSeconds
static function beatToSeconds(beat:Float):Float
| Parameter | Type | Default |
|---|---|---|
beat | Float | — |
getStep
static function getStep(time:Float)
| Parameter | Type | Default |
|---|---|---|
time | Float | — |
getStepRounded
static function getStepRounded(time:Float)
| Parameter | Type | Default |
|---|---|---|
time | Float | — |
getBeat
static function getBeat(time:Float)
| Parameter | Type | Default |
|---|---|---|
time | Float | — |
getBeatRounded
static function getBeatRounded(time:Float):Int
| Parameter | Type | Default |
|---|---|---|
time | Float | — |
mapBPMChanges
static function mapBPMChanges(song:SwagSong)
| Parameter | Type | Default |
|---|---|---|
song | SwagSong | — |
calculateCrochet
static inline function calculateCrochet(bpm:Float)
| Parameter | Type | Default |
|---|---|---|
bpm | Float | — |
changeBPM
static function changeBPM(newBpm:Float)
| Parameter | Type | Default |
|---|---|---|
newBpm | Float | — |
Internals
Private / internal members
| Method |
|---|
static function getSectionBeats(song:SwagSong, section:Int):Float |