MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / toBinary

Method toBinary

packages/alphatab/src/midi/MidiFile.ts:142–146  ·  view source on GitHub ↗

* Writes the midi file into a binary format. * @returns The binary midi file.

()

Source from the content-addressed store, hash-verified

140 * @returns The binary midi file.
141 */
142 public toBinary(): Uint8Array {
143 const data: ByteBuffer = ByteBuffer.empty();
144 this.writeTo(data);
145 return data.toArray();
146 }
147
148 /**
149 * Writes the midi file as binary into the given stream.

Callers 1

downloadMidiMethod · 0.95

Calls 3

writeToMethod · 0.95
emptyMethod · 0.80
toArrayMethod · 0.80

Tested by

no test coverage detected