I have a small app receiving MIDI from Bluetooth channel. It works well using Core APIs, so I tried to use AudioKit to simplify my code.
Problem is : I can't see the SysEx events in the listener (although I see them in my basic code). Other midi events are received.
AKMidi = AudioKit.midi
AKMidi?.addListener(AVKMIDIControl())
...
AKMidi?.openInput(index: i)
...
class AVKMIDIControl:AKMIDIListener {
...
// copy paste from audiokit.io example
func receivedMIDISystemCommand(_ data: [MIDIByte]) {
if let command = AKMIDISystemCommand(rawValue: data[0]) {
var newString = "MIDI System Command: \(command) \n"
for i in 0 ..< data.count {
newString.append("\(data[i]) ")
}
print(newString)
}
}
...
I should be receiving SysEx events in the listener (btw,I implemented all other functions to be sure I am catching everything), but I only get log messages like AKMIDI.swift:startReceivingSysex(with:):102:Starting to receive Sysex AKMIDI.swift:stopReceivingSysex():107:Done receiving Sysex
but nothing through the listener...
How can I get the Sysex message data ?