pxt-calliope/sim/state/midi.ts
Peli de Halleux 1a9235e333
MIDI support in simulator (#1332)
* gluing to support MIDI devices in the simulator

* sim support for midi

* simplify interface

* ensure helper function does not show up in TS

* bump pxt
2018-10-03 11:32:29 -07:00

7 lines
192 B
TypeScript

namespace pxsim.control {
export function __midiSend(data: RefBuffer) {
const b = board();
pxsim.AudioContextManager.sendMidiMessageAsync(data)
.done();
}
}