MCPcopy
hub / github.com/andremichelle/openDAW / send

Method send

packages/studio/core/src/midi/MidiDevices.ts:41–49  ·  view source on GitHub ↗
(data: unknown, _timestamp?: number)

Source from the content-addressed store, hash-verified

39 readonly version: string | null = null
40
41 send(data: unknown, _timestamp?: number): void {
42 if (data instanceof Uint8Array) {
43 procedure(data)
44 } else if (Array.isArray(data) && data.every(value => typeof value === "number")) {
45 procedure(new Uint8Array(data))
46 } else {
47 return panic("MIDI output data must be an array of numbers or a Uint8Array")
48 }
49 }
50 addEventListener(_type: unknown, _listener: unknown, _options?: unknown): void {}
51 removeEventListener(_type: unknown, _listener: unknown, _options?: unknown): void {}
52 close(): Promise<MIDIPort> {return Promise.resolve(this)}

Callers

nothing calls this directly

Calls 2

panicFunction · 0.85
everyMethod · 0.65

Tested by

no test coverage detected