music.readMidi
FunctionAPI 2The notes of a Standard MIDI File, given as bytes or Base64 (whitespace ignored).
| Signature | music.readMidi(data: string | Uint8Array | ArrayBuffer): Score |
|---|
| Take it from | const { music } = Bundleware; |
|---|
Parameters
| Parameter | Type | Description |
|---|
data | string | Uint8Array | ArrayBuffer | |
Return Value
| Member | Type | Description |
|---|
duration | number | |
notes | readonly Note[] | |
tracks | readonly Readonly<{ name: string; program: number | null }>[] | |
Availability
| Applicable versions | API 2 and higher |
|---|
| Bundleware | 0.3.0, build 2026.10.29 |
|---|