Bundleware, Toolbar Script Reference

Last site update 29th October 2026

music.readMidi

FunctionAPI 2

The notes of a Standard MIDI File, given as bytes or Base64 (whitespace ignored).

Signaturemusic.readMidi(data: string | Uint8Array | ArrayBuffer): Score
Take it fromconst { music } = Bundleware;

Parameters

ParameterTypeDescription
datastring | Uint8Array | ArrayBuffer

Return Value

MemberTypeDescription
durationnumber
notesreadonly Note[]
tracksreadonly Readonly<{ name: string; program: number | null }>[]

Availability

Applicable versionsAPI 2 and higher
Bundleware0.3.0, build 2026.10.29