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.
initBpmList
The RPE chart.
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`); Copy
const stats = getChartStats(chart);console.log(`${stats.totalNotes} notes, ${stats.notesPerSecond.toFixed(2)} NPS`);console.log(`Peak density: ${stats.peakDensity} notes/s`);
Compute summary statistics for a chart.
Iterates all lines and notes once to collect counts, timings, and densities. Calls
initBpmListinternally so you don't need to pre-process the chart.