OSX Coremidi lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- idc65 · 2013-07-04 18:13 I am struggling with coremidi does anyone have sample code for working midi, that sends/received midi messages and also for sending receiving sysex messages I am having trouble working out what parameters to set in this MIDIInputPortCreate( client: MIDIClientRef; portName: CFStringRef; readProc: MIDIReadProc; refCon: UnivPtr; var outPort: MIDIPortRef ): OSStatus; external name '_MIDIInputPortCreate'; ---------------------------------------------------------------------- BigChimp · 2013-07-05 06:02 No idea, but perhaps it helps if you post your existing code (via project/publish project), and post your Lazarus and FPC versions as well as OSX version. ---------------------------------------------------------------------- idc65 · 2013-07-12 21:10 Sorry for delay was trying to get kazarus working on 10.8, failed so back on 10.6.8. I am using Laz 1.1 FPC 2.6.2 Attached project as to where I am at the moment, The error I am stuck on is mac_midi_unit.pas(104,78) Error: Incompatible type for arg no. 3: Got "
", expected "