API ReferenceAll TypesmidiMidiFiletoBinaryOn this pagetoBinaryDescription​ Writes the midi file into a binary format. JavaScriptC#KotlintoBinary(): Uint8ArrayUint8Array ToBinary()fun toBinary(): Uint8Array Returns​ The binary midi file.