RPE Chart Utils
    Preparing search index...

    Function getChartStats

    • Compute summary statistics for a chart.

      Iterates all lines and notes once to collect counts, timings, and densities. Calls initBpmList internally so you don't need to pre-process the chart.

      Parameters

      Returns ChartStats

      A ChartStats object.

      const stats = getChartStats(chart);
      console.log(`${stats.totalNotes} notes, ${stats.notesPerSecond.toFixed(2)} NPS`);
      console.log(`Peak density: ${stats.peakDensity} notes/s`);