type ChartDocument =
| {
fileName: string;
format: "chart";
tokens: ChartFileTokens;
}
| {
bytes: Uint8Array;
fileName: string;
format: "mid";
readError: string | null;
tokens: MidiTokens | null;
};
Union Members
Type Literal
{
fileName: string;
format: "chart";
tokens: ChartFileTokens;
}
Type Literal
{
bytes: Uint8Array;
fileName: string;
format: "mid";
readError: string | null;
tokens: MidiTokens | null;
}
| Name | Type | Description |
|---|---|---|
bytes | Uint8Array | - |
fileName | string | - |
format | "mid" | - |
readError | string | null | - |
tokens | MidiTokens | null | Every chunk of the file, unknown types included, or null when the file can’t be read as MIDI. |