Open MicheleLonghi opened 4 years ago
Many types, especially MIDIMessage
and types MIDIMessage
uses, are enums with associated values.
I don't know a good way to expose those types to JS.
I think it's a nice idea for scripting purposes. Do you think this can be done in separate Swift Package?
You're right. The library is nicely done as a pure Swift implementation. The biggest issue is MIDIMessage indeed. It would be necessary to create specific JS types, like MIIDNoteOnMessage, only for the purpose. TBH last time I used JSC was with ObjC, so I have to get back to it and better understand what can be done with Swift. Cheers
Allowing access to MIDIKit APIs from JS.