> ## 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.

# serializeSong()

```ts theme={null}
function serializeSong(song): SavePlan;
```

Plans saving a song: every file of its folder. A song no edit made comes back byte for byte. An edited song is
also normalized wherever that changes no hash its edits didn't (E7), against the hashes of the song its chain of
edits started from; the report lists the hashes the edits spent and what was normalized or withheld. Files
scan-chart didn't read stay byte sources, read only when the plan is written.

## Parameters

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

## Returns

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


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