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

Method writeTo

packages/alphatab/src/midi/MidiEvent.ts:158–170  ·  view source on GitHub ↗
(s: IWriteable)

Source from the content-addressed store, hash-verified

156 }
157
158 public override writeTo(s: IWriteable): void {
159 // meta header
160 s.writeByte(0xff);
161 // time signature
162 s.writeByte(0x58);
163 // size
164 MidiFile.writeVariableInt(s, 4);
165 // Data
166 s.writeByte(this.numerator & 0xff);
167 s.writeByte(this.denominatorIndex & 0xff);
168 s.writeByte(this.midiClocksPerMetronomeClick & 0xff);
169 s.writeByte(this.thirtySecondNodesInQuarter & 0xff);
170 }
171}
172
173/**

Callers

nothing calls this directly

Calls 2

writeVariableIntMethod · 0.80
writeByteMethod · 0.65

Tested by

no test coverage detected