metadata. A .chart file’s [Song] section gets the metadata it has keys for, as saving makes it agree
with song.ini; a .mid file has an empty events track, for practice sections. The resolution defaults to each
format’s usual one: 192 ticks per beat in .chart, 480 in .mid.
Throws for a resolution the format can’t hold, a metadata value song.ini can’t hold, or chartOffsetMs: a new
song’s offset is song.ini’s delay.
Parameters
Returns
SongDocument