Parse a JSON string into an RpeJson chart and initialize the chart.
RpeJson
Equivalent to JSON.parse(json) followed by preprocess(chart).
JSON.parse(json)
preprocess(chart)
JSON string (as read from chart.json).
chart.json
Parsed and BPM-initialized chart.
import { readFileSync } from 'fs';const chart = parseChart(readFileSync('chart.json', 'utf8')); Copy
import { readFileSync } from 'fs';const chart = parseChart(readFileSync('chart.json', 'utf8'));
Parse a JSON string into an
RpeJsonchart and initialize the chart.Equivalent to
JSON.parse(json)followed bypreprocess(chart).