Skip to main content

Beatmap

const beatmap = new Beatmap(pathToBeatmap: string)
  • pathToBeatmap: full path to .osu file

Properties

audioFilename: string

difficulty: IBeatmapDifficulty

interface IBeatmapDifficulty {
hp: number
circleSize: number
overallDifficulty: number
approachRate: number
sliderMultiplier: number
sliderTickRate: number
}

metadata: IBeatmapMetadata

interface IBeatmapMetadata {
title: string
artist: string
creator: string
difficulty: string
}

colors: OsbColor[]

hitObjects: IBeatmapHitObjects

interface IBeatmapHitObjects {
spinners: Spinner[]
sliders: Slider[]
circles: Circle[]
}

timingPoints: ITimingPoint

interface ITimingPoint {
time: number
beatLength: number
meter: number
sampleSet: SampleSet
sampleIndex: number
volume: number
uninherited: boolean
kiai: boolean
}