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
How to Write a Generic Function for Floating Point Values in Swift
Uislider Handle Changes Width on Different Size Ipads
Characteristic.Value from Bluetooth Reading in Swift
Cannot Increment Beyond Endindex
Swift - Rotate Gesture and Rotation Increments of 90 Degrees
How to Put a View with Loadmore Button in UItableview After The Cell
How to Get Alphabetic Tableview Sections from an Object
How to Show Two Row of Text in a Menu Bar App in MAC Os
Can't Hide Status Bar in Avplayerviewcontroller's Portrait Mode
Realm Data Insertion Took Over 7Mins for Big Size JSON
How Pass Data from Button in Tableviewcell to View Controller
Swift-Making an Sknode Simply "Move Forward" on an Angle
Use Tableviewcontroller Inside Skscene
Thread Safety of Method Calls on "Shared" Static Constant Property