* Writes the midi file into a binary format. * @returns The binary midi file.
()
| 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. |
no test coverage detected