protoplug icon indicating copy to clipboard operation
protoplug copied to clipboard

midi event constructor seems to be busted

Open jmckernon opened this issue 3 years ago • 0 comments

Constructing a midi event seems not to work when a data table is explicitly passed in. At the interactive console:

midi.Event(0, 3) -- returns cdata<struct MidiEvent>, ok
midi.Event(0, 3, {0x90, 0x30, 0x7f}) -- seems to return nothing, not even nil

Not a show-stopper as the bytes can be manually set, but it is confusing.

jmckernon avatar Apr 22 '22 10:04 jmckernon