RPE Chart Utils
    Preparing search index...

    Function parseChart

    • Parse a JSON string into an RpeJson chart and initialize the chart.

      Equivalent to JSON.parse(json) followed by preprocess(chart).

      Parameters

      • json: string

        JSON string (as read from chart.json).

      Returns RpeJson

      Parsed and BPM-initialized chart.

      import { readFileSync } from 'fs';
      const chart = parseChart(readFileSync('chart.json', 'utf8'));