chart.module
README.md
chart
The Downbeat chart format: Chart.parse(text) turns a hand-written chart (header lines, tempo changes, <beat> <lanes> [hold n] lines, bar <n>: x... .x.. grids) into notes with exact song times, and returns every problem with its line (line 14: lane 5 is outside 1-4). Also load (parse or raise), fromAsset (a rhythmChart ref), fold (fewer lanes), build and serialize (charts from code and back to text), the tempo map (toTime, toBeat, bpm). Pure, no engine calls except fromAsset's file read. Called by downbeat.rhythm and by game code that loads or writes charts.