Skip to content

API Interface MusicPositionAt

github-actions[bot] edited this page Nov 29, 2026 · 2 revisions

Interface: MusicPositionAt

Defined in: src/engine/core/musicEvents.ts:82

handle.music.positionAt(performanceTime) (§1.1, M4c).

Properties

bar

bar: number;

Defined in: src/engine/core/musicEvents.ts:85


beat

beat: number;

Defined in: src/engine/core/musicEvents.ts:86


beatFraction

beatFraction: number;

Defined in: src/engine/core/musicEvents.ts:88

0..1 through the beat.


judged

judged: number;

Defined in: src/engine/core/musicEvents.ts:94

offset - Audio.calibration (seconds): what a rhythm game compares.


nearestBeatTime

nearestBeatTime: number;

Defined in: src/engine/core/musicEvents.ts:90

Seconds: the nearest beat's heard time.


offset

offset: number;

Defined in: src/engine/core/musicEvents.ts:92

Seconds, signed: positive means the input was late; raw, before calibration.


segment

segment: string | null;

Defined in: src/engine/core/musicEvents.ts:84

Null: the music is not playing at that instant.

Clone this wiki locally