Audiokit Seems to Receive Only The First Three Numbers of Sysex Midi Messages

AKMIDIListener not receiving SysEx

EDIT: Thanks for bringing this to our attention. The SysEx receiving issue has now been fixed in the develop branch of AudioKit: https://github.com/AudioKit/AudioKit/pull/1017

--

Instead of

NSLog("SysEx \(data)")

Have you tried?

if let sysExCommand = AKMIDISystemCommand(rawValue: data[0]) {
print("MIDI System Command: \(sysExCommand)")
}

AKMIDISystemCommand will convert your SysEx data to something a bit more usable and is defined as follows:

public enum AKMIDISystemCommand: MIDIByte {
/// Trivial Case of None
case none = 0
/// System Exclusive
case sysex = 240
/// Song Position
case songPosition = 242
/// Song Selection
case songSelect = 243
/// Request Tune
case tuneRequest = 246
/// End System Exclusive
case sysexEnd = 247
/// Clock
case clock = 248
/// Start
case start = 250
/// Continue
case `continue` = 251
/// Stop
case stop = 252
/// Active Sensing
case activeSensing = 254
/// System Reset
case sysReset = 255
}

-- matthew @ audiokit

Porting a win32 MIDI SysEx application to MacOSX

I found a great little (just one .cpp file + headers) midi library - crossplatform and all :)

It's also a great source to analyse and to learn from.. a little nugget in the whole undocumented field.

http://www.music.mcgill.ca/~gary/rtmidi/index.html



Related Topics



Leave a reply



Submit