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

Function writeTo

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

Source from the content-addressed store, hash-verified

180 public static readonly RestEventId = 0x01;
181
182 public override writeTo(s: IWriteable): void {
183 // sysex
184 s.writeByte(0xf0);
185
186 // data
187 const data = ByteBuffer.withCapacity(16);
188 data.writeByte(AlphaTabSysExEvent.AlphaTabManufacturerId);
189 this.writeEventData(data);
190 // syntactic sysex end
191 data.writeByte(0xf7);
192
193 MidiFile.writeVariableInt(s, data.length);
194 data.copyTo(s);
195 }
196
197 protected abstract writeEventData(s: IWriteable): void;
198}

Callers

nothing calls this directly

Calls 5

withCapacityMethod · 0.80
writeVariableIntMethod · 0.80
copyToMethod · 0.80
writeByteMethod · 0.65
writeEventDataMethod · 0.45

Tested by

no test coverage detected