osumodcalculator
    Preparing search index...

    Function modded

    • calculate values with mods applied

      if custom speed is unused then the speed from any given mods will be used (DT, HT etc.)

          const circleSize = 4;
      const approachRate = 10;
      const overallDifficulty = 5.5;
      const hp = 6;
      const bpm = 215;
      const songLength = 180;
      const mods: ApiMod[] = [{
      acronym: 'DT',
      settings: {
      speed_change: 1.15
      }
      },
      {
      acronym: 'DA',
      settings: {
      circle_size: 3.5
      }
      }
      ];
      const moddedStats = modded({
      cs: circleSize,
      ar: approachRate,
      od: overallDifficulty,
      hp, bpm, songLength
      }, mods);
      // =>
      // {
      // cs: 3.5,
      // ar: 10.39,
      // od: 6.51,
      // hp: 6,
      // bpm: 247.24999999999997,
      // songLength: 156.52173913043478,
      // extra: {
      // csRadius: 38.730180610000005,
      // arMs: 391.304347826087,
      // odMs: {
      // hitwindow_300: 40.434782608695656,
      // hitwindow_100: 83.04347826086958,
      // hitwindow_50: 125.65217391304348,
      // },
      // },

      Parameters

      • stats: {
            ar: number;
            bpm: number;
            cs: number;
            hp: number;
            od: number;
            songLength: number;
        }
      • mods: Mod[] | ApiMod[]
      • OptionalcustomSpeed: number

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