CoreMIDI (OS X + Swift)

Hi, i just can´t figure out how to structure a MIDI receiver. I want to receive MIDI signals from a keyboard or piano. Add/Remove them from arrays real time (Note + Velocity). But i just can´t figure out how it is supposed to be coded, or how the framework in general work. So, can any of you help me, and give me a starting point of how to receive the values, and select devices etc…

Thanks in advance!
Jakob S.

Hi, i just can´t figure out how to structure a MIDI receiver. I want to receive MIDI signals from a keyboard or piano. Add/Remove them from arrays real time (Note + Velocity). But i just can´t figure out how it is supposed to be coded, or how the framework in general work. So, can any of you help me, and give me a starting point of how to receive the values, and select devices etc…

Thanks in advance!
Jakob S.

Here's a starting point: GitHub - mixedinkey-opensource/MIKMIDI: MIDI Library for Swift and Objective-C Mac and iOS apps.

It seems to do everything you described. So you can either use it as-is or
pick it apart to figure out what you don't know.

-david

···

On Mon, Jan 25, 2016 at 10:02 AM, Jakob Stendahl via swift-users < swift-users@swift.org> wrote:

Hi, i just can´t figure out how to structure a MIDI receiver. I want to
receive MIDI signals from a keyboard or piano. Add/Remove them from arrays
real time (Note + Velocity). But i just can´t figure out how it is supposed
to be coded, or how the framework in general work. So, can any of you help
me, and give me a starting point of how to receive the values, and select
devices etc…

Thanks in advance!
Jakob S.

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users