Options
All
  • Public
  • Public/Protected
  • All
Menu

The base of a difficulty calculator.

Hierarchy

Index

Constructors

Properties

Additional data that is used in performance calculation.

The calculated beatmap.

mods: <internal>.Mod[] = []

The modifications applied.

objects: DifficultyHitObject[] = []

The difficulty objects of the beatmap.

stats: <internal>.MapStats = ...

The map statistics of the beatmap after modifications are applied.

strainPeaks: StrainPeaks = ...

The strain peaks of various calculated difficulties.

total: number = 0

The total star rating of the beatmap.

Methods

  • Calculates the star rating of the specified beatmap.

    The beatmap is analyzed in chunks of sectionLength duration. For each chunk the highest hitobject strains are added to a list which is then collapsed into a weighted sum, much like scores are weighted on a user's profile.

    For subsequent chunks, the initial max strain is calculated by decaying the previous hitobject's strain until the beginning of the new chunk.

    Parameters

    Returns DifficultyCalculator

  • calculateAll(): void
  • calculateTotal(): void
  • generateDifficultyHitObjects(): void
  • toString(): string

Generated using TypeDoc