> ## Documentation Index
> Fetch the complete documentation index at: https://chart-spec.enchor.us/llms.txt
> Use this file to discover all available pages before exploring further.

# resolveChart()

```ts theme={null}
function resolveChart(song): GameplayChart;
```

The chart of a song as Clone Hero plays it. Throws `ChartReadError` if the song has no chart or it can't be read.

## Parameters

| Parameter | Type |
| - | - |
| `song` | [`SongDocument`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/SongDocument) |

## Returns

[`GameplayChart`](https://chart-spec.enchor.us/scan-chart/api/index/interfaces/GameplayChart)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.