Recent

Author Topic: OSX and midi  (Read 359 times)

corpusgemini

  • New Member
  • *
  • Posts: 18
OSX and midi
« on: August 01, 2020, 12:33:49 pm »
Hello,

Has anyone successfully implemented MIDI in a project for OSX?

If so, can they share the code used for it, because I find lots of posts of people having the same issue, but up till now no working solution.

Thanks a lot,
Tony

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1062
  • Former Delphi 1-7, 10.2 User
Re: macOS and midi
« Reply #1 on: August 01, 2020, 12:52:51 pm »
I wrote example code for a minimal MIDI player for the macOS MIDI article on the Wiki.
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

corpusgemini

  • New Member
  • *
  • Posts: 18
Re: OSX and midi
« Reply #2 on: August 01, 2020, 01:02:35 pm »
Thanks trev.

However I am looking for a way to send and receive MIDI commands from devices. It should make use of CoreMIDI apparently.

Best regards,
Tony

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1062
  • Former Delphi 1-7, 10.2 User
Re: OSX and midi
« Reply #3 on: August 01, 2020, 01:08:58 pm »
Be aware that Apple is extending the CoreMIDI API for the forthcoming release of Big Sur (macOS 11.0). See: https://developer.apple.com/documentation/coremidi/

(I don't have a MIDI musical instrument, so haven't seriously looked at the CoreMIDI API).
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

 

TinyPortal © 2005-2018