osumodcalculator
    Preparing search index...

    Function speed

    • calculate stats with speed applied

          // https://osu.ppy.sh/b/ 759056
      const speedRate = 1.15;
      const approachRate = 9.2;
      const overallDifficulty = 8;
      const bpm = 189;
      const songLength = 189;
      const newStats = speed(speedRate, { ar: approachRate, od: overallDifficulty, bpm, songLength });
      // =>
      // {
      // ar: 9.7,
      // od: 8.68,
      // bpm: 217.35,
      // songLength: 164.34782608695653,
      // extra: {
      // arMs: 495.6521739130436,
      // odMs: {
      // hitwindow_300: 27.39130434782609,
      // hitwindow_100: 65.65217391304348,
      // hitwindow_50: 103.91304347826087,
      // },
      // },
      // }

      Parameters

      • i: number | "HT" | "DT"

        the level of speed to apply. Using DT or HT will apply 1.5 and 0.75 speed, respectively.

      • stats: { ar: number; bpm: number; od: number; songLength: number }

      Returns {
          ar: number;
          bpm: number;
          extra: {
              arMs: number;
              lengthReadable: string;
              odMs: {
                  hitwindow_100: number;
                  hitwindow_300: number;
                  hitwindow_50: number;
              };
          };
          od: number;
          songLength: number;
      }