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
This commit is contained in:
Peli de Halleux
2018-10-03 11:32:29 -07:00
committed by GitHub
parent 710abd50cb
commit 1a9235e333
4 changed files with 24 additions and 1 deletions

7
sim/state/midi.ts Normal file
View File

@ -0,0 +1,7 @@
namespace pxsim.control {
export function __midiSend(data: RefBuffer) {
const b = board();
pxsim.AudioContextManager.sendMidiMessageAsync(data)
.done();
}
}